capture and split notification if it has multiple hosts
Some checks failed
Build and Publish / BuildAndDeployAmd64 (push) Successful in 46s
Build and Publish / BuildAndDeployArm64 (push) Has been cancelled

This commit is contained in:
matst80
2025-11-28 16:44:03 +01:00
parent 330093bdec
commit 90a525bd98
7 changed files with 160 additions and 1579 deletions

View File

@@ -2,6 +2,7 @@ package actor
import (
"context"
"io"
"net/http"
"google.golang.org/protobuf/proto"
@@ -34,7 +35,7 @@ type Host interface {
AnnounceExpiry(ids []uint64)
Negotiate(otherHosts []string) ([]string, error)
Name() string
Proxy(id uint64, w http.ResponseWriter, r *http.Request) (bool, error)
Proxy(id uint64, w http.ResponseWriter, r *http.Request, customBody io.Reader) (bool, error)
Apply(ctx context.Context, id uint64, mutation ...proto.Message) (bool, error)
GetActorIds() []uint64
Close() error