server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouter

func RegisterRouter(s *Server) *gin.Engine

Types

type Config

type Config struct {
	RouterRegister RegisterHandler
}

type RegisterHandler

type RegisterHandler func(*gin.Engine)

type Server

type Server struct {
	Name           string
	Port           int
	Host           string
	RouterRegister RegisterHandler
	OtherHandle    func(*gin.Engine)
	StopHandle     func(*gin.Engine)

	Cros       bool
	Auth       bool
	Ignores    []string
	NeedLogins []string
	NeedCache  []string
	// contains filtered or unexported fields
}

func Default

func Default() *Server

func NewServer

func NewServer(name string, port int, host string) *Server

func (*Server) Run

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

Jump to

Keyboard shortcuts

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