Documentation
¶
Index ¶
- type Config
- type Constructor
- func (c *Constructor) New(config *pangu.Config, logger log.Logger) (server *core.Server, mux *http.ServeMux, err error)
- func (c *Constructor) NewClient(config *pangu.Config) (client *core.Client, err error)
- func (c *Constructor) NewException() *core.Exception
- func (c *Constructor) NewGateway(logger log.Logger) *core.Gateway
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// 服务器端配置
Server *config.Server `json:"server" yaml:"server" xml:"server" toml:"server"`
// 网关配置
Gateway *config.Gateway `json:"gateway" yaml:"gateway" xml:"gateway" toml:"gateway"`
// 客户端配置
Clients []config.Client `json:"clients" yaml:"clients" toml:"clients" xml:"clients"`
// gRPC配置
Options config.Options `json:"options" yaml:"options" xml:"options" toml:"options"`
}
type Constructor ¶ added in v0.4.3
type Constructor struct {
}
func (*Constructor) NewException ¶ added in v0.5.1
func (c *Constructor) NewException() *core.Exception
func (*Constructor) NewGateway ¶ added in v0.4.3
func (c *Constructor) NewGateway(logger log.Logger) *core.Gateway
Click to show internal directories.
Click to hide internal directories.