Documentation ¶
Index ¶
- type NoSessionServer
- func (s *NoSessionServer) Addr() string
- func (s *NoSessionServer) Close() error
- func (s *NoSessionServer) HandleMetric(ctx context.Context, r *metric.HandleMetricRequest) (*adptModel.ReportResult, error)
- func (s *NoSessionServer) PromPort() int
- func (s *NoSessionServer) Run()
- func (s *NoSessionServer) Wait() error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoSessionServer ¶
type NoSessionServer struct {
// contains filtered or unexported fields
}
NoSessionServer models no session adapter backend.
func NewNoSessionServer ¶
func NewNoSessionServer(addr uint16, promAddr uint16) (*NoSessionServer, error)
NewNoSessionServer creates a new no session server from given args.
func (*NoSessionServer) Addr ¶
func (s *NoSessionServer) Addr() string
Addr returns the listening address of the server
func (*NoSessionServer) Close ¶
func (s *NoSessionServer) Close() error
Close gracefully shuts down the server
func (*NoSessionServer) HandleMetric ¶
func (s *NoSessionServer) HandleMetric(ctx context.Context, r *metric.HandleMetricRequest) (*adptModel.ReportResult, error)
HandleMetric records metric entries and responds with the programmed response
func (*NoSessionServer) PromPort ¶
func (s *NoSessionServer) PromPort() int
PromPort returns the listening address of the prometheus server
Click to show internal directories.
Click to hide internal directories.