monitor

package
v0.0.0-...-e25d287 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_monitor_config_proto protoreflect.FileDescriptor

Functions

func BasicAuth

func BasicAuth(validator middleware.BasicAuthValidator) echo.MiddlewareFunc

func HandleApiV1

func HandleApiV1(config *Config, g *echo.Group)

func TriggerShutdown

func TriggerShutdown(delay time.Duration)

Types

type Config

type Config struct {
	Port       uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
	Login      string `protobuf:"bytes,3,opt,name=login,proto3" json:"login,omitempty"`
	Password   string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetConfigPath

func (x *Config) GetConfigPath() string

func (*Config) GetLogin

func (x *Config) GetLogin() string

func (*Config) GetPassword

func (x *Config) GetPassword() string

func (*Config) GetPort

func (x *Config) GetPort() uint32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

func NewMonitor

func NewMonitor(ctx context.Context, config *Config) (*Monitor, error)

func (*Monitor) Close

func (m *Monitor) Close() error

func (*Monitor) Start

func (m *Monitor) Start() error

func (*Monitor) Type

func (m *Monitor) Type() any

Jump to

Keyboard shortcuts

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