Documentation ¶
Overview ¶
Package public API controller
This is the public api of the service - all operations are projected with JWTs if required.
Index ¶
Constants ¶
View Source
const ControllerName = "public"
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 {
// contains filtered or unexported fields
}
Controller is the public api controller
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) Start ¶
func (c *Controller) Start() error
Start starts the api server in a new go-func
type IController ¶
type IController interface { gousu.IController }
IController is the interface of the public api controller
Source Files ¶
- mapper_agent.go
- mapper_check.go
- mapper_checker.go
- mapper_checkstatus.go
- mapper_configproperty.go
- mapper_host.go
- mapper_notifier.go
- mapper_tag.go
- mapper_user.go
- public.go
- public_envjs.go
- public_staticfile.go
- public_v1_add_agent.go
- public_v1_add_check.go
- public_v1_add_host.go
- public_v1_add_notifier.go
- public_v1_add_tag.go
- public_v1_add_user.go
- public_v1_delete_agent.go
- public_v1_delete_check.go
- public_v1_delete_host.go
- public_v1_delete_notifier.go
- public_v1_delete_tag.go
- public_v1_delete_user.go
- public_v1_execute_check.go
- public_v1_finish_setup.go
- public_v1_get_agent.go
- public_v1_get_agents.go
- public_v1_get_check.go
- public_v1_get_checker.go
- public_v1_get_checkers.go
- public_v1_get_checks.go
- public_v1_get_config.go
- public_v1_get_host.go
- public_v1_get_host_checks.go
- public_v1_get_hosts.go
- public_v1_get_notifier.go
- public_v1_get_notifiers.go
- public_v1_get_own_user.go
- public_v1_get_tag.go
- public_v1_get_tags.go
- public_v1_get_user.go
- public_v1_get_users.go
- public_v1_health_sanity.go
- public_v1_login.go
- public_v1_logout.go
- public_v1_set_config_property.go
- public_v1_update_check.go
- public_v1_update_host.go
- public_v1_update_notifier.go
- public_v1_update_tag.go
- public_v1_update_user.go
- utils_agent_config.go
- utils_check_auth.go
- utils_server_cert.go
Click to show internal directories.
Click to hide internal directories.