grpcx

package
v0.0.0-...-cd938e1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnConf

type ConnConf struct {
	HostPort string `yaml:"hostPort" json:"hostPort"`
}

func NewConnConf

func NewConnConf() *ConnConf

func (ConnConf) MustConnect

func (x ConnConf) MustConnect() (conn *grpc.ClientConn)

type GrpcConf

type GrpcConf struct {
	Port        int `yaml:"port"  json:"port"`
	GatewayPort int `yaml:"gatewayPort"  json:"gatewayPort"`
}

GrpcConf 配置

func (GrpcConf) GatewayListenAddress

func (x GrpcConf) GatewayListenAddress() string

GatewayListenAddress `:Port`

func (GrpcConf) GrpcEndpoint

func (x GrpcConf) GrpcEndpoint() string

GrpcListenAddress `:Port`

func (GrpcConf) GrpcListenAddress

func (x GrpcConf) GrpcListenAddress() string

GrpcListenAddress `:Port`

Jump to

Keyboard shortcuts

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