gateway

package
v0.0.0-...-8d35329 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevMod     = "dev"     // dev
	ReleaseMod = "release" // 正式环境
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address       string
	RunMode       string
	GrpcAddress   string
	GrpcTransData int
	ShutDownTime  time.Duration
}

Config 启动配置信息

type GWBuild

type GWBuild struct {
	// contains filtered or unexported fields
}

func NewGWBuild

func NewGWBuild(conf *Config) *GWBuild

func (*GWBuild) RegisterServer

func (build *GWBuild) RegisterServer(funcs ...func(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error) *GWBuild

func (*GWBuild) ShutDown

func (build *GWBuild) ShutDown()

func (*GWBuild) Start

func (build *GWBuild) Start()

type OptionFunc

type OptionFunc func(*GWBuild)

type Options

type Options interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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