Documentation ¶
Index ¶
- func GetJetStream(process *PullConsumerProcess) (jetstream.JetStream, error)
- type PullConsumer
- func (c *PullConsumer) HandleCall(process *gen.ServerProcess, from gen.ServerFrom, message etf.Term) (etf.Term, gen.ServerStatus)
- func (c *PullConsumer) HandleCast(process *gen.ServerProcess, message etf.Term) gen.ServerStatus
- func (c *PullConsumer) HandleDirect(process *gen.ServerProcess, ref etf.Ref, message interface{}) (interface{}, gen.DirectStatus)
- func (c *PullConsumer) HandleInfo(process *gen.ServerProcess, message etf.Term) gen.ServerStatus
- func (c *PullConsumer) Init(process *gen.ServerProcess, args ...etf.Term) error
- func (c *PullConsumer) Terminate(process *gen.ServerProcess, reason string)
- type PullConsumerBehavior
- type PullConsumerOptions
- type PullConsumerProcess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJetStream ¶
func GetJetStream(process *PullConsumerProcess) (jetstream.JetStream, error)
Types ¶
type PullConsumer ¶
func (*PullConsumer) HandleCall ¶
func (c *PullConsumer) HandleCall( process *gen.ServerProcess, from gen.ServerFrom, message etf.Term) (etf.Term, gen.ServerStatus)
func (*PullConsumer) HandleCast ¶
func (c *PullConsumer) HandleCast( process *gen.ServerProcess, message etf.Term) gen.ServerStatus
func (*PullConsumer) HandleDirect ¶
func (c *PullConsumer) HandleDirect( process *gen.ServerProcess, ref etf.Ref, message interface{}) (interface{}, gen.DirectStatus)
func (*PullConsumer) HandleInfo ¶
func (c *PullConsumer) HandleInfo( process *gen.ServerProcess, message etf.Term) gen.ServerStatus
func (*PullConsumer) Init ¶
func (c *PullConsumer) Init( process *gen.ServerProcess, args ...etf.Term) error
func (*PullConsumer) Terminate ¶
func (c *PullConsumer) Terminate( process *gen.ServerProcess, reason string)
type PullConsumerBehavior ¶
type PullConsumerBehavior interface { gen.ServerBehavior InitPullConsumer(process *PullConsumerProcess, args ...etf.Term) (*PullConsumerOptions, error) HandleMessage(process *PullConsumerProcess, msg jetstream.Msg) error }
type PullConsumerOptions ¶
type PullConsumerProcess ¶
type PullConsumerProcess struct { gen.ServerProcess // contains filtered or unexported fields }
func (*PullConsumerProcess) Options ¶
func (pcp *PullConsumerProcess) Options() *PullConsumerOptions
Click to show internal directories.
Click to hide internal directories.