Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(callbacks []Callbacks, config multizone.KdsServerConfig, metrics core_metrics.Metrics) component.Component
Types ¶
type MultiplexStream ¶
type MultiplexStream interface { Send(*mesh_proto.Message) error Recv() (*mesh_proto.Message, error) Context() context.Context }
type OnSessionStartedFunc ¶
func (OnSessionStartedFunc) OnSessionStarted ¶
func (f OnSessionStartedFunc) OnSessionStarted(session Session) error
type Session ¶
type Session interface { ServerStream() mesh_proto.KumaDiscoveryService_StreamKumaResourcesServer ClientStream() mesh_proto.KumaDiscoveryService_StreamKumaResourcesClient PeerID() string Done() <-chan struct{} Error() error }
func NewSession ¶
func NewSession(peerID string, stream MultiplexStream, stop <-chan struct{}) Session
Click to show internal directories.
Click to hide internal directories.