server

package
v1.0.1-0...-5011f7a Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(rootCmd *cobra.Command)

AddCommands ...

func InitDatabase

func InitDatabase(path string) *sql.DB

如果路径为空,使用内存数据库。

Types

type Server

type Server struct {
	HTTPAddr string // 服务器实际端口
	GRPCAddr string // 服务器实际端口
	Auther   *auth.Auth
	Service  *service.Service
}

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, testing bool, cfg *config.Config, ready chan<- struct{})

Jump to

Keyboard shortcuts

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