Documentation
¶
Index ¶
- Variables
- type Option
- type Server
- func (s *Server) Addr() net.Addr
- func (s *Server) ClientConn(stream protos.ControlPlane_ClientConnServer) error
- func (s *Server) Events() chan event.Event
- func (s *Server) GetSamplers(resourceName, samplerName string) ([]*control.Sampler, error)
- func (s *Server) SamplerConn(stream protos.ControlPlane_SamplerConnServer) error
- func (s *Server) Start(listenAddr string) error
- func (s *Server) Stop(_ time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyStarted = errors.New("server already started")
)
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAuthBearer ¶
WithAuthBearer configures the server to validate connections based on the provided token
func WithDiskStorage ¶
WithDiskStorage enables the persistence of the internal state of the server to disk. Path contains the root folder where the data will be stored
func WithLogger ¶
WithLogger changes the internal logger. In case of not setting it, the server does not output logs
func WithReconciliationPeriod ¶
WithReconciliationPeriod sets how often the server will try to reconcile its configuration with the connected samplers.
type Server ¶
type Server struct { protos.UnimplementedControlPlaneServer // contains filtered or unexported fields }
func (*Server) ClientConn ¶
func (s *Server) ClientConn(stream protos.ControlPlane_ClientConnServer) error
func (*Server) GetSamplers ¶ added in v0.3.0
func (*Server) SamplerConn ¶
func (s *Server) SamplerConn(stream protos.ControlPlane_SamplerConnServer) error
Click to show internal directories.
Click to hide internal directories.