Documentation ¶
Index ¶
- type Broker
- type Option
- type PrimitiveRegistry
- type Server
- func (s *Server) LookupPrimitive(ctx context.Context, request *brokerapi.LookupPrimitiveRequest) (*brokerapi.LookupPrimitiveResponse, error)
- func (s *Server) RegisterPrimitive(ctx context.Context, request *brokerapi.RegisterPrimitiveRequest) (*brokerapi.RegisterPrimitiveResponse, error)
- func (s *Server) UnregisterPrimitive(ctx context.Context, request *brokerapi.UnregisterPrimitiveRequest) (*brokerapi.UnregisterPrimitiveResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *brokerOptions)
Option is a broker option
func WithNamespace ¶
WithNamespace sets the pod namespace
type PrimitiveRegistry ¶
type PrimitiveRegistry struct {
// contains filtered or unexported fields
}
PrimitiveRegistry is a primitive registry The registry is not thread safe!
func (*PrimitiveRegistry) AddPrimitive ¶
func (r *PrimitiveRegistry) AddPrimitive(id brokerapi.PrimitiveId, primitive brokerapi.PrimitiveAddress) error
func (*PrimitiveRegistry) LookupPrimitive ¶
func (r *PrimitiveRegistry) LookupPrimitive(id brokerapi.PrimitiveId) (brokerapi.PrimitiveAddress, error)
func (*PrimitiveRegistry) RemovePrimitive ¶
func (r *PrimitiveRegistry) RemovePrimitive(id brokerapi.PrimitiveId) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(primitives *PrimitiveRegistry) *Server
func (*Server) LookupPrimitive ¶
func (s *Server) LookupPrimitive(ctx context.Context, request *brokerapi.LookupPrimitiveRequest) (*brokerapi.LookupPrimitiveResponse, error)
func (*Server) RegisterPrimitive ¶
func (s *Server) RegisterPrimitive(ctx context.Context, request *brokerapi.RegisterPrimitiveRequest) (*brokerapi.RegisterPrimitiveResponse, error)
func (*Server) UnregisterPrimitive ¶
func (s *Server) UnregisterPrimitive(ctx context.Context, request *brokerapi.UnregisterPrimitiveRequest) (*brokerapi.UnregisterPrimitiveResponse, error)
Click to show internal directories.
Click to hide internal directories.