gateway

package
v0.0.0-...-3d3caa2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Default_Config_Name = "config.yml"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	Ip         string `yaml:"ip"`
	Port       uint16 `yaml:"port"`
	InstanceId uint32 `yaml:"instance_id"`
	ServerId   uint32 `yaml:"server_id"`
}

type Config

type Config struct {
	BaseConfig   BaseConfig         `yaml:"base"`
	ConsulConfig model.ConsulConfig `yaml:"consul"`
}

type GateWay

type GateWay struct {
	IP         string
	Port       uint16
	InstanceId uint32
	ServerId   uint32

	ClientManager *rpc.ClientManager
	ServiceMap    map[string][]*model.Service
	// contains filtered or unexported fields
}

func NewGateway

func NewGateway() *GateWay

func (*GateWay) Init

func (g *GateWay) Init() error

func (*GateWay) Run

func (g *GateWay) Run()

Jump to

Keyboard shortcuts

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