monitoring

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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 New

func New(instance roles.Instance) *Role

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) HandleHealthReady added in v0.4.9

func (r *Role) HandleHealthReady(w http.ResponseWriter, re *http.Request)

func (*Role) HandleMetrics

func (r *Role) HandleMetrics(w http.ResponseWriter, re *http.Request)

func (*Role) IsRunning added in v0.3.5

func (r *Role) IsRunning() bool

func (*Role) Start

func (r *Role) Start(ctx context.Context, config []byte) error

func (*Role) Stop

func (r *Role) Stop()

type RoleConfig

type RoleConfig struct {
	Port int32 `json:"port"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL