Documentation ¶
Index ¶
- type App
- type Option
- func WithEndpoints(endpoints []*url.URL) Option
- func WithName(name string) Option
- func WithRPCServer(server *rpcserver.Server) Option
- func WithRegistrar(registrar registry.Registrar) Option
- func WithRegistrarTimeout(registrarTimeout time.Duration) Option
- func WithRestServer(server *restserver.Server) Option
- func WithSigs(sigs []os.Signal) Option
- func WithStopTimeout(stopTimeout time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *options)
func WithEndpoints ¶
func WithRPCServer ¶
WithRPCServer allows user to provide own implementation of rpc server
func WithRegistrar ¶
WithRegistrar allows user to provide own implementation of registry center
func WithRegistrarTimeout ¶
func WithRestServer ¶
func WithRestServer(server *restserver.Server) Option
WithRestServer allows user to provide own implementation of rest server
func WithStopTimeout ¶
Click to show internal directories.
Click to hide internal directories.