goproject

package
v0.0.0-...-a02da8a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "dev"

Variables

View Source
var (
	BuildDate string
	GoVersion string
	GitCommit string
)

Functions

func RunAPIServer

func RunAPIServer(config APIServerConfig)

func RunWorkerServer

func RunWorkerServer(config WorkerServerConfig)

func VersionInfo

func VersionInfo() string

Types

type APIServerConfig

type APIServerConfig struct {
	Environment             string
	Debug                   bool
	JWTKey                  string
	Addr                    string
	UserCenterRPCServerAddr string
	DB                      DBConfig
	Redis                   RedisConfig
}

type DBConfig

type DBConfig struct {
	Addr     string
	User     string
	Password string
	Database string
}

type RedisConfig

type RedisConfig struct {
	Addr     string
	Password string
}

type WorkerServerConfig

type WorkerServerConfig struct {
	Environment             string
	Debug                   bool
	UserCenterRPCServerAddr string
	DB                      DBConfig
	Redis                   RedisConfig
}

Directories

Path Synopsis
api
swagger
Package swagger Code generated by swaggo/swag.
Package swagger Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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