Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoRefClient ¶
type AutoRefClient struct {
*Client
}
type AutoRefServer ¶
type AutoRefServer struct { ProcessRequest func(string, refproto.AutoRefToController) error *Server }
func NewAutoRefServer ¶
func NewAutoRefServer() (s *AutoRefServer)
type CiServer ¶ added in v0.26.0
type CiServer struct {
TimeConsumer CiTimeConsumer
}
func NewCiServer ¶ added in v0.26.0
func NewCiServer() CiServer
type Client ¶
type Client struct { Id string Conn net.Conn Token string PubKey *rsa.PublicKey VerifiedConnection bool }
func (*Client) Ok ¶
func (c *Client) Ok() (reply refproto.ControllerReply)
func (*Client) SendRequest ¶
func (c *Client) SendRequest(request refproto.ControllerToTeam) error
type Server ¶
type Server struct { Clients map[string]*Client TrustedKeys map[string]*rsa.PublicKey ConnectionHandler func(net.Conn) }
func (*Server) LoadTrustedKeys ¶
type TeamClient ¶
type TeamClient struct {
*Client
}
type TeamServer ¶
type TeamServer struct { ProcessTeamRequest func(teamName string, request refproto.TeamToController) error AllowedTeamNames []string *Server }
func NewTeamServer ¶
func NewTeamServer() (s *TeamServer)
func (*TeamServer) SendRequest ¶
func (s *TeamServer) SendRequest(teamName string, request refproto.ControllerToTeam) error
Click to show internal directories.
Click to hide internal directories.