Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientHandler ¶
type ClientHandler struct {
// contains filtered or unexported fields
}
func NewClientHandler ¶
func NewClientHandler( rectToServerReqCb ClientRecvFromServerReqFunc, statusChangeCb ClientStatusChangeFunc, ) *ClientHandler
type ClientRecvFromServerReqFunc ¶
type ClientRecvFromServerReqFunc func(*protos.ClientToServer) (bool, *protos.ServerToClient, error)
type ClientStatusChangeFunc ¶ added in v0.1.0
type FromS ¶
type FromS interface { *protos.ServerToClient | *protos.ServerToSampler }
type Options ¶
type Options struct { // RegistrationReqTimeout is a duration for the maximum amount of time to wait // for a registration request after a new client/sampler connection. RegistrationReqTimeout time.Duration // ResponseTimeout is a duration for the maximum amount of time to wait // for a response to a request send to the client/sampler. ResponseTimeout time.Duration // ServerReqsQueueLen defines how many client/sampler requests are allowed to be queued. ReqsQueueLen int }
func NewOptionsDefault ¶
func NewOptionsDefault() *Options
type SamplerHandler ¶
type SamplerHandler struct {
// contains filtered or unexported fields
}
func NewSamplerHandler ¶
func NewSamplerHandler( rectToServerReqCb SamplerRecvFromServerReqFunc, statusChangeCb SamplerStatusChangeFunc, ) *SamplerHandler
type SamplerRecvFromServerReqFunc ¶
type SamplerRecvFromServerReqFunc func(*protos.SamplerToServer) (bool, *protos.ServerToSampler, error)
type SamplerStatusChangeFunc ¶ added in v0.1.0
type SamplerStatusChangeFunc func(defs.Status, control.SamplerUID, *protos.SamplerToServer) error
type Stream ¶
type Stream[T ToS, F FromS] struct { UID string ServerUID string // contains filtered or unexported fields }
func (*Stream[FromS, ToS]) FromServerMsg ¶
func (s *Stream[FromS, ToS]) FromServerMsg() ToS
type ToS ¶
type ToS interface { *protos.ClientToServer | *protos.SamplerToServer }
Click to show internal directories.
Click to hide internal directories.