Documentation ¶
Index ¶
- Constants
- func NewController(ctx gousu.IContext) gousu.IController
- type Controller
- func (c *Controller) CheckV1(stream apiagent.Agent_CheckV1Server) error
- func (c *Controller) Health() error
- func (c *Controller) Name() string
- func (c *Controller) PingV1(ctx context.Context, req *apiagent.PingV1Request) (*apiagent.Empty, error)
- func (c *Controller) RegisterAgentV1(ctx context.Context, req *apiagent.RegisterAgentV1Request) (*apiagent.Empty, error)
- func (c *Controller) RegisterCheckV1(ctx context.Context, req *apiagent.RegisterCheckV1Request) (*apiagent.Empty, error)
- func (c *Controller) RegisterCheckerV1(ctx context.Context, req *apiagent.RegisterCheckerV1Request) (*apiagent.Empty, error)
- func (c *Controller) Start() error
- func (c *Controller) Stop() error
- type IController
- type Session
Constants ¶
View Source
const ControllerName = "agent"
ControllerName defines the name of the api controller used for dependency exception
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController(ctx gousu.IContext) gousu.IController
NewController creates a new preinitialized instance of Controller
Types ¶
type Controller ¶
type Controller struct { apiagent.UnimplementedAgentServer // contains filtered or unexported fields }
Controller is the admin api controller
func (*Controller) CheckV1 ¶
func (c *Controller) CheckV1(stream apiagent.Agent_CheckV1Server) error
func (*Controller) Health ¶
func (c *Controller) Health() error
Health checks if the api server has thrown unresolvable internal errors
func (*Controller) Name ¶
func (c *Controller) Name() string
func (*Controller) PingV1 ¶
func (c *Controller) PingV1(ctx context.Context, req *apiagent.PingV1Request) (*apiagent.Empty, error)
func (*Controller) RegisterAgentV1 ¶
func (c *Controller) RegisterAgentV1(ctx context.Context, req *apiagent.RegisterAgentV1Request) (*apiagent.Empty, error)
func (*Controller) RegisterCheckV1 ¶
func (c *Controller) RegisterCheckV1(ctx context.Context, req *apiagent.RegisterCheckV1Request) (*apiagent.Empty, error)
func (*Controller) RegisterCheckerV1 ¶
func (c *Controller) RegisterCheckerV1(ctx context.Context, req *apiagent.RegisterCheckerV1Request) (*apiagent.Empty, error)
func (*Controller) Start ¶
func (c *Controller) Start() error
func (*Controller) Stop ¶
func (c *Controller) Stop() error
type IController ¶
type IController interface { gousu.IController }
IController is the interface of the api controller
Click to show internal directories.
Click to hide internal directories.