plugin

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) New added in v0.4.3

func (c *Constructor) New(config *pangu.Config, logger log.Logger) (server *core.Server, mux *http.ServeMux, err error)

func (*Constructor) NewClient added in v0.4.3

func (c *Constructor) NewClient(config *pangu.Config) (client *core.Client, err error)

func (*Constructor) NewGateway added in v0.4.3

func (c *Constructor) NewGateway(logger log.Logger) *core.Gateway

type Wrapper

type Wrapper struct {
	// gRPC配置
	Grpc *Config `json:"grpc" yaml:"grpc" xml:"grpc" toml:"grpc" validate:"required"`
}

Jump to

Keyboard shortcuts

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