Documentation ¶
Index ¶
- Constants
- type HealthImpl
- type Module
- func (m *Module) GetConfig(key string) ([]byte, error)
- func (m *Module) GetConfigWithParser(key string, parser int, value any, funcList ...func([]byte) ([]byte, error)) error
- func (m *Module) GetModuleConfig(key string) ([]byte, error)
- func (m *Module) GetModuleConfigWithParser(key string, parser int, value any, funcList ...func([]byte) ([]byte, error)) error
- func (m *Module) GetPath() string
- func (m *Module) GrpcService(conf *config.GrpServiceConfig) error
- func (m *Module) HttpService(conf *config.HttpServiceConfig) error
- func (m *Module) NewGrpcClientConn() (*grpc.ClientConn, error)
- func (m *Module) NewHttpClientConn() *http.ClientConn
- func (m *Module) SetConfig(key string, value []byte) error
- func (m *Module) SetConfigWithParser(key string, parser int, value any, funcList ...func([]byte) ([]byte, error)) error
- func (m *Module) SetModuleConfig(key string, value []byte) error
- func (m *Module) SetModuleConfigWithParser(key string, parser int, value any, funcList ...func([]byte) ([]byte, error)) error
- type Parser
- type ParserBasic
- type ParserJson
- type ParserToml
- type ParserXml
- type ParserYaml
Constants ¶
View Source
const ( PARSER_BASIC = iota PARSER_JSON PARSER_XML PARSER_YAML PARSER_TOML )
View Source
const ( SERVICE_TYPE_GRPC = "grpc" SERVICE_TYPE_HTTP = "http" )
View Source
const ( AUTO_IP_DONOTHING = iota AUTO_IP AUTO_IP_PUBLIC )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthImpl ¶
type HealthImpl struct{}
func (*HealthImpl) Check ¶
func (h *HealthImpl) Check(_ context.Context, _ *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthImpl) Watch ¶
func (h *HealthImpl) Watch(req *grpc_health_v1.HealthCheckRequest, w grpc_health_v1.Health_WatchServer) error
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func New ¶
func New(conf *config.ModuleConfig) *Module
func (*Module) GetConfigWithParser ¶
func (*Module) GetModuleConfigWithParser ¶
func (*Module) GrpcService ¶
func (m *Module) GrpcService(conf *config.GrpServiceConfig) error
func (*Module) HttpService ¶
func (m *Module) HttpService(conf *config.HttpServiceConfig) error
func (*Module) NewGrpcClientConn ¶
func (m *Module) NewGrpcClientConn() (*grpc.ClientConn, error)
func (*Module) NewHttpClientConn ¶
func (m *Module) NewHttpClientConn() *http.ClientConn
func (*Module) SetConfigWithParser ¶
type ParserBasic ¶
type ParserBasic struct{}
type ParserJson ¶
type ParserJson struct{}
type ParserToml ¶
type ParserToml struct{}
type ParserYaml ¶
type ParserYaml struct{}
Click to show internal directories.
Click to hide internal directories.