rest

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(next http.Handler) http.Handler

func StartHttpListener

func StartHttpListener(tlsConfig *tls.Config, addr string, cfg *config.Config) (func(ctx context.Context) error, controller.Service, error)

Types

type Service

type Service struct {
	controller.Controller
	Router chi.Router
}

func New

func New(cfg *config.Config) *Service

func (*Service) Base

func (s *Service) Base(w http.ResponseWriter, _ *http.Request)

func (*Service) GetBackendStats

func (s *Service) GetBackendStats(w http.ResponseWriter, r *http.Request)

func (*Service) GetLogs

func (s *Service) GetLogs(w http.ResponseWriter, r *http.Request)

func (*Service) GetStats

func (s *Service) GetStats(w http.ResponseWriter, r *http.Request)

func (*Service) GetSystemStats

func (s *Service) GetSystemStats(w http.ResponseWriter, _ *http.Request)

func (*Service) GetUserOnlineIpListStats

func (s *Service) GetUserOnlineIpListStats(w http.ResponseWriter, r *http.Request)

func (*Service) GetUserOnlineStat

func (s *Service) GetUserOnlineStat(w http.ResponseWriter, r *http.Request)

func (*Service) Start

func (s *Service) Start(w http.ResponseWriter, r *http.Request)

func (*Service) Stop

func (s *Service) Stop(w http.ResponseWriter, _ *http.Request)

func (*Service) SyncUser

func (s *Service) SyncUser(w http.ResponseWriter, r *http.Request)

func (*Service) SyncUsers

func (s *Service) SyncUsers(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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