Documentation ¶
Index ¶
- type Context
- type HandlerFunc
- type LogLevel
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
- type Option
- type Options
- type Plugin
- func (p *Plugin) Funcs() []string
- func (p *Plugin) Handle(funcName string, handler HandlerFunc)
- func (p *Plugin) Mount(target string, port int) error
- func (p *Plugin) Name() string
- func (p *Plugin) Opts() Options
- func (p *Plugin) Shutdown(reason shared.UnbindReason, msg *string) []error
- func (p *Plugin) Status() Status
- func (p *Plugin) Token() string
- func (p *Plugin) Version() string
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCallOpts ¶
func WithCallOpts(opts ...grpc.CallOption) Option
func WithDialOpts ¶
func WithDialOpts(opts ...grpc.DialOption) Option
func WithHeartbeat ¶
WithHeartbeat set heartbeat, default is 10s
func WithLogLevel ¶
WithLogLevel set log level, default is Info
type Plugin ¶
type Plugin struct { Log *Logger // contains filtered or unexported fields }
func (*Plugin) Handle ¶
func (p *Plugin) Handle(funcName string, handler HandlerFunc)
Click to show internal directories.
Click to hide internal directories.