goc_mini_server

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiniServer

type MiniServer struct {
	Name string

	Option serverOption
	// contains filtered or unexported fields
}

func RunApp

func RunApp(name string, app gin_app.App, opts ...Option) *MiniServer

func (*MiniServer) GetRouteTable

func (s *MiniServer) GetRouteTable() string

func (*MiniServer) GetServerStatus

func (s *MiniServer) GetServerStatus() (*ServerStatus, error)

func (*MiniServer) QuitWatch

func (s *MiniServer) QuitWatch()

func (*MiniServer) Run

func (s *MiniServer) Run()

func (*MiniServer) Shutdown

func (s *MiniServer) Shutdown()

type Option

type Option func(o *serverOption)

func WithBasicAuth

func WithBasicAuth(userPass map[string]string) Option

func WithForceAuth

func WithForceAuth() Option

func WithLogDir

func WithLogDir(path string) Option

func WithLogLevel

func WithLogLevel(level string) Option

func WithPort

func WithPort(port int) Option

type ServerStatus

type ServerStatus struct {
	SystemStatus *system_status.SystemStatus
	Host         string
	Port         int
	RouteCount   int
	RouteTable   string
}

func (ServerStatus) Output

func (s ServerStatus) Output()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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