Documentation ¶
Index ¶
- func NewLoggingServerHooks() *twirp.ServerHooks
- func WithUserAgent(base http.Handler) http.Handler
- type Config
- type CounterOpt
- type MonitorSettings
- type Server
- func (srv *Server) GetConfig(ctx context.Context, in *pb.GetConfigParams) (*pb.Config, error)
- func (srv *Server) GetServers(ctx context.Context, in *pb.GetServersParams) (*pb.ServerList, error)
- func (srv *Server) Run() error
- func (srv *Server) SignIPs(monitorID uint32, batchID []byte, ip *netip.Addr) ([]byte, error)
- func (srv *Server) SubmitResults(ctx context.Context, in *pb.ServerStatusList) (*pb.ServerStatusResult, error)
- func (srv *Server) ValidateIPs(signature []byte, monitorID uint32, batchID []byte, ip *netip.Addr) (bool, error)
- type SubmitCounters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggingServerHooks ¶
func NewLoggingServerHooks() *twirp.ServerHooks
Types ¶
type Config ¶
type Config struct { DeploymentEnv string Listen string JWTKey string CertProvider apitls.CertificateProvider }
type CounterOpt ¶
type MonitorSettings ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetServers ¶
func (srv *Server) GetServers(ctx context.Context, in *pb.GetServersParams) (*pb.ServerList, error)
func (*Server) SubmitResults ¶
func (srv *Server) SubmitResults(ctx context.Context, in *pb.ServerStatusList) (*pb.ServerStatusResult, error)
type SubmitCounters ¶
type SubmitCounters struct { Ok *CounterOpt Offset *CounterOpt Timeout *CounterOpt Sig *CounterOpt BatchOrder *CounterOpt }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.