Documentation
¶
Index ¶
- func Run(cnt zcontainer.Container, conf *Options, opts ...Option) (err error)
- type GoMicroClientWrapGenerateFn
- type GoMicroHandlerRegisterFn
- type GoMicroServerWrapGenerateFn
- type HttpGWHandlerRegisterFn
- type HttpHandlerRegisterFn
- type InitServiceCompleteFn
- type LoadEngineFn
- type Option
- func WithGoMicroClientWrapGenerateFnOption(fn ...GoMicroClientWrapGenerateFn) Option
- func WithGoMicroServerWrapGenerateFnOption(fn ...GoMicroServerWrapGenerateFn) Option
- func WithGoMicrohandlerRegisterFnOption(fn GoMicroHandlerRegisterFn) Option
- func WithHttpGWhandlerRegisterFnOption(fn HttpGWHandlerRegisterFn) Option
- func WithHttpHandlerRegisterFnOption(fn HttpHandlerRegisterFn) Option
- func WithInitServiceCompleteFnOption(fn InitServiceCompleteFn) Option
- func WithLoadEngineFnOption(fn LoadEngineFn) Option
- func WithProcessChangeFnOption(fn ProcessChangeFn) Option
- func WithServiceNameOption(s string) Option
- func WithSwaggerJSONFileName(s string) Option
- type Options
- type ProcessChangeFn
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoMicroHandlerRegisterFn ¶
type GoMicroHandlerRegisterFn func(s server.Server, opts ...server.HandlerOption) error
type GoMicroServerWrapGenerateFn ¶
type GoMicroServerWrapGenerateFn func(ng engine.Engine) func(fn server.HandlerFunc) server.HandlerFunc
type HttpGWHandlerRegisterFn ¶
type HttpHandlerRegisterFn ¶
type InitServiceCompleteFn ¶
type LoadEngineFn ¶
type Option ¶
type Option func(o *Options)
func WithGoMicroClientWrapGenerateFnOption ¶
func WithGoMicroClientWrapGenerateFnOption(fn ...GoMicroClientWrapGenerateFn) Option
func WithGoMicroServerWrapGenerateFnOption ¶
func WithGoMicroServerWrapGenerateFnOption(fn ...GoMicroServerWrapGenerateFn) Option
func WithGoMicrohandlerRegisterFnOption ¶
func WithGoMicrohandlerRegisterFnOption(fn GoMicroHandlerRegisterFn) Option
func WithHttpGWhandlerRegisterFnOption ¶
func WithHttpGWhandlerRegisterFnOption(fn HttpGWHandlerRegisterFn) Option
func WithHttpHandlerRegisterFnOption ¶
func WithHttpHandlerRegisterFnOption(fn HttpHandlerRegisterFn) Option
func WithInitServiceCompleteFnOption ¶
func WithInitServiceCompleteFnOption(fn InitServiceCompleteFn) Option
func WithLoadEngineFnOption ¶
func WithLoadEngineFnOption(fn LoadEngineFn) Option
func WithProcessChangeFnOption ¶
func WithProcessChangeFnOption(fn ProcessChangeFn) Option
func WithServiceNameOption ¶
func WithSwaggerJSONFileName ¶
type Options ¶
type Options struct {
ServiceName string
ApiPort int
ApiInterface string
Port int
// 对外部提供访问的地址(注册到服务发现中心),格式[ip:port]
Advertise string
Log string
LogFormat string
LogLevel string
SwaggerJSONFileName string
ConfEntryPath string
GoMicroHandlerRegisterFn GoMicroHandlerRegisterFn
HttpGWHandlerRegisterFn HttpGWHandlerRegisterFn
HttpHandlerRegisterFn HttpHandlerRegisterFn
ProcessChangeFn ProcessChangeFn
LoadEngineFn LoadEngineFn
InitServiceCompleteFn InitServiceCompleteFn
GoMicroServerWrapGenerateFn []GoMicroServerWrapGenerateFn
GoMicroClientWrapGenerateFn []GoMicroClientWrapGenerateFn
Version bool
}
type ProcessChangeFn ¶
type ProcessChangeFn func(event interface{})
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(options Options, container zcontainer.Container, opts ...Option) *Service
Click to show internal directories.
Click to hide internal directories.