Documentation ¶
Index ¶
Constants ¶
View Source
const RequestsTopic = "discovery:request"
View Source
const ResponsesTopic = "discovery:response"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub interface { Register(ctx context.Context, info ServiceInfo) error Load(ctx context.Context) ([]ServiceInfo, error) }
type Middleware ¶
type Middleware[Service service.Service] struct { InfoProvider func(ctx context.Context, srvc Service) (map[string]any, error) Events *event.Broker RequestCodec codec.Codec[Request, []byte] ResponseCodec codec.Codec[Response, []byte] }
func WithStaticInfo ¶
type Poller ¶
type Responder ¶
type Response ¶
type Response struct { RequestID string ServiceInfo ServiceInfo }
Click to show internal directories.
Click to hide internal directories.