server

package
v0.0.0-...-f2a390a Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostStatus

type HostStatus struct {
	Status Status `json:"status"`

	ReportedAt time.Time `json:"reported_at"`
	// contains filtered or unexported fields
}

type PingBody

type PingBody struct {
	Identifier string `json:"identifier" validate:"required"`
}

type Server

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

func New

func New(c *config.ServerConfig) (*Server, error)

func (*Server) Start

func (s *Server) Start() error

type Status

type Status string
const (
	StatusNone      Status = ""
	StatusHealthy   Status = "healthy"
	StatusUnhealthy Status = "unhealthy"
)

type Validator

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

func (*Validator) Validate

func (v *Validator) Validate(i any) error

Jump to

Keyboard shortcuts

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