Documentation ¶
Index ¶
- Constants
- type APIRoleConfigInput
- type APIRoleConfigOutput
- type Role
- func (r *Role) APIRoleConfigGet() usecase.Interactor
- func (r *Role) APIRoleConfigPut() usecase.Interactor
- func (r *Role) HandleHealthLive(w http.ResponseWriter, re *http.Request)
- func (r *Role) HandleMetrics(w http.ResponseWriter, re *http.Request)
- func (r *Role) IsRunning() bool
- func (r *Role) Start(ctx context.Context, config []byte) error
- func (r *Role) Stop()
- type RoleConfig
Constants ¶
View Source
const (
KeyRole = "monitoring"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRoleConfigInput ¶
type APIRoleConfigInput struct {
Config RoleConfig `json:"config" required:"true"`
}
type APIRoleConfigOutput ¶
type APIRoleConfigOutput struct {
Config RoleConfig `json:"config" required:"true"`
}
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func (*Role) APIRoleConfigGet ¶
func (r *Role) APIRoleConfigGet() usecase.Interactor
func (*Role) APIRoleConfigPut ¶
func (r *Role) APIRoleConfigPut() usecase.Interactor
func (*Role) HandleHealthLive ¶
func (r *Role) HandleHealthLive(w http.ResponseWriter, re *http.Request)
func (*Role) HandleMetrics ¶
func (r *Role) HandleMetrics(w http.ResponseWriter, re *http.Request)
type RoleConfig ¶
type RoleConfig struct {
Port int32 `json:"port"`
}
Click to show internal directories.
Click to hide internal directories.