relay

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relay

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

func NewRelay

func NewRelay(cfg *conf.Config, cmgr cmgr.Cmgr) (*Relay, error)

func (*Relay) ListenAndServe

func (r *Relay) ListenAndServe(ctx context.Context) error

func (*Relay) Stop added in v1.1.5

func (r *Relay) Stop() error

func (*Relay) UniqueID added in v1.1.4

func (r *Relay) UniqueID() string

type Server added in v1.1.4

type Server struct {
	Cmgr cmgr.Cmgr
	// contains filtered or unexported fields
}

func NewServer added in v1.1.4

func NewServer(cfg *config.Config) (*Server, error)

func (*Server) HealthCheck added in v1.1.4

func (r *Server) HealthCheck(ctx context.Context, relayID string) (int64, error)

func (*Server) Reload added in v1.1.4

func (s *Server) Reload(force bool) error

func (*Server) Start added in v1.1.4

func (s *Server) Start(ctx context.Context) error

func (*Server) Stop added in v1.1.4

func (s *Server) Stop() error

func (*Server) TriggerReload added in v1.1.4

func (s *Server) TriggerReload()

func (*Server) TriggerReloadBySignal added in v1.1.4

func (s *Server) TriggerReloadBySignal(ctx context.Context)

func (*Server) WatchAndReload added in v1.1.4

func (s *Server) WatchAndReload(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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