server

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinRun

func GinRun(ctx context.Context, opt *Option)

func GrpcRun

func GrpcRun(ctx context.Context, opt *GrpcOption)

Types

type GrpcOption

type GrpcOption struct {
	Logger     *logrus.Logger
	Port       string
	SvrName    string
	ConfigEnv  string
	Env        string
	GrpcServer *grpc.Server
}

type Option

type Option struct {
	Logger    *logrus.Logger
	Port      string
	SvrName   string
	ConfigEnv string
	Env       string
	Engine    *gin.Engine
}

Jump to

Keyboard shortcuts

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