Documentation ¶
Index ¶
- func CreateGateway(opts *WebOptions) web.Service
- func CreateService(opts *ServiceOptions) micro.Service
- func CreateWeb(opts *WebOptions) web.Service
- func Logger() *mlog.Logger
- func RegisterServer(srv server.Server, registers ...RegisterServerFunc) error
- type RegisterServerFunc
- type ServiceOptions
- func (opts *ServiceOptions) FQDN() string
- func (opts *ServiceOptions) GetBuildTime() string
- func (opts *ServiceOptions) GetGitCommit() string
- func (opts *ServiceOptions) GetGoVersion() string
- func (opts *ServiceOptions) GetProductName() string
- func (opts *ServiceOptions) GetProductVersion() string
- func (opts *ServiceOptions) ServiceMetadata() map[string]string
- type WebOptions
- func (opts *WebOptions) FQDN() string
- func (opts *WebOptions) GetBuildTime() string
- func (opts *WebOptions) GetGitCommit() string
- func (opts *WebOptions) GetGoVersion() string
- func (opts *WebOptions) GetProductName() string
- func (opts *WebOptions) GetProductVersion() string
- func (opts *WebOptions) ServiceMetadata() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateService ¶
func CreateService(opts *ServiceOptions) micro.Service
func CreateWeb ¶
func CreateWeb(opts *WebOptions) web.Service
func RegisterServer ¶
func RegisterServer(srv server.Server, registers ...RegisterServerFunc) error
Types ¶
type RegisterServerFunc ¶
type ServiceOptions ¶
type ServiceOptions struct { // PreServerHandlerWrappers 自定义 HandlerWrapper,在标准 HandlerWrapper 之前注册 PreServerHandlerWrappers []server.HandlerWrapper // PostServerHandlerWrappers 自定义 HandlerWrapper,在标准 HandlerWrapper 之后注册 PostServerHandlerWrappers []server.HandlerWrapper // PreClientWrappers 自定义 Client Wrapper,在标准 Wrapper 之前注册 PreClientWrappers []client.Wrapper // PostClientWrappers 自定义 Client Wrapper,在标准 Wrapper 之前注册 PostClientWrappers []client.Wrapper // ServiceOptions 其它 Service Option ServiceOptions []micro.Option // contains filtered or unexported fields }
func NewServiceOptions ¶
func NewServiceOptions(namespace, name string) *ServiceOptions
func (*ServiceOptions) GetBuildTime ¶
func (opts *ServiceOptions) GetBuildTime() string
func (*ServiceOptions) GetGitCommit ¶
func (opts *ServiceOptions) GetGitCommit() string
func (*ServiceOptions) GetGoVersion ¶
func (opts *ServiceOptions) GetGoVersion() string
func (*ServiceOptions) GetProductName ¶
func (opts *ServiceOptions) GetProductName() string
func (*ServiceOptions) GetProductVersion ¶
func (opts *ServiceOptions) GetProductVersion() string
func (*ServiceOptions) ServiceMetadata ¶
type WebOptions ¶
type WebOptions struct { // WebOptions 其它 Web Option WebOptions []web.Option // contains filtered or unexported fields }
func NewWebOptions ¶
func NewWebOptions(namespace, name string) *WebOptions
func (*WebOptions) GetBuildTime ¶
func (opts *WebOptions) GetBuildTime() string
func (*WebOptions) GetGitCommit ¶
func (opts *WebOptions) GetGitCommit() string
func (*WebOptions) GetGoVersion ¶
func (opts *WebOptions) GetGoVersion() string
func (*WebOptions) GetProductName ¶
func (opts *WebOptions) GetProductName() string
func (*WebOptions) GetProductVersion ¶
func (opts *WebOptions) GetProductVersion() string
func (*WebOptions) ServiceMetadata ¶
Click to show internal directories.
Click to hide internal directories.