Documentation ¶
Index ¶
- type App
- func (s *App) Broker() broker.Broker
- func (s *App) Client() *client.Client
- func (s *App) Config() *config.Config
- func (s *App) Init()
- func (s *App) Logger(l ...logger.Logger) logger.Logger
- func (s *App) Registry() naming.Registry
- func (s *App) Resolver() naming.Resolver
- func (s *App) Restart()
- func (s *App) RpcServer() *grpc.Server
- func (s *App) Run()
- func (s *App) Service() naming.Service
- func (s *App) Stop()
- func (s *App) Store(name string, st ...store.Store) store.Store
- func (s *App) Tracer() tracer.Tracer
- type Option
- func WithAddr(c string) Option
- func WithConfig(c *config.Config) Option
- func WithName(c string) Option
- func WithOrg(c string) Option
- func WithServer(opt ...grpc.ServerOption) Option
- func WithStreamnIterceptor(opt grpc.StreamServerInterceptor) Option
- func WithTimezome(c string) Option
- func WithUnaryInterceptor(opt grpc.UnaryServerInterceptor) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option Option
func WithConfig ¶ added in v0.1.1
func WithStreamnIterceptor ¶ added in v0.1.1
func WithStreamnIterceptor(opt grpc.StreamServerInterceptor) Option
StreamInterceptor Stream server interceptor
func WithTimezome ¶ added in v0.1.1
func WithUnaryInterceptor ¶ added in v0.1.1
func WithUnaryInterceptor(opt grpc.UnaryServerInterceptor) Option
UnaryInterceptor Unary server interceptor
type Options ¶
type Options struct {
Org, Name, Addr string
Config *config.Config
UnaryInterceptor []grpc.UnaryServerInterceptor
StreamInterceptor []grpc.StreamServerInterceptor
Server []grpc.ServerOption
Timezone string
}
Options 参数
Directories ¶
Path | Synopsis |
---|---|
interceptor
|
|
ratelimit
Package ratelimit provides an efficient token bucket implementation that can be used to limit the rate of arbitrary things.
|
Package ratelimit provides an efficient token bucket implementation that can be used to limit the rate of arbitrary things. |
util
|
|
Click to show internal directories.
Click to hide internal directories.