Documentation
¶
Index ¶
- Constants
- func Consume(ctx context.Context, containers ...interface{}) (abstract.OnceSubscription, bool)
- func KeepConsume(ctx context.Context, containers ...interface{}) (abstract.Subscription, bool)
- func Put(ctx context.Context, material interface{}) error
- func RegisterSetUp(name string, full bool, setUp SetUp)
- type Middleware
- type SetUp
Constants ¶
View Source
const MiddlewareName = "plant"
Variables ¶
This section is empty.
Functions ¶
func Consume ¶
func Consume(ctx context.Context, containers ...interface{}) (abstract.OnceSubscription, bool)
Consume 从生产者处消费数据,请不要对指针类型数据进行修改
func KeepConsume ¶
func KeepConsume(ctx context.Context, containers ...interface{}) (abstract.Subscription, bool)
KeepConsume 持续从生产者处消费数据,请不要对指针类型数据进行修改
func RegisterSetUp ¶
name the plant name full 是否需要全量权限
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (*Middleware) Init ¶
func (m *Middleware) Init(opt []mist.Option)
func (*Middleware) Inter ¶
func (m *Middleware) Inter(full bool) mist.Interceptor
func (*Middleware) Run ¶
func (m *Middleware) Run(ctx context.Context, info *mist.ServerInfo) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.