Documentation
¶
Index ¶
- type JetStream
- func (this_ *JetStream) AddStream(name string, desc string, maxBytes int64) *berror.ErrMsg
- func (this_ *JetStream) AddStreamIfNoExist(name string, desc string, maxBytes int64) *berror.ErrMsg
- func (this_ *JetStream) Close()
- func (this_ *JetStream) ConsumerInfo(stream string, name string) (*nats.ConsumerInfo, *berror.ErrMsg)
- func (this_ *JetStream) DeleteConsumer(stream string, name string) *berror.ErrMsg
- func (this_ *JetStream) DeleteStreamIfExist(name string) *berror.ErrMsg
- func (this_ *JetStream) JetStream() nats.JetStream
- func (this_ *JetStream) Publish(subj string, data []byte) *berror.ErrMsg
- func (this_ *JetStream) PullWithAll(stream string, name string) (*Puller, *berror.ErrMsg)
- func (this_ *JetStream) PullWithNewest(stream string, name string) (*Puller, *berror.ErrMsg)
- func (this_ *JetStream) PullWithSeq(stream string, name string, seq uint64) (*Puller, *berror.ErrMsg)
- func (this_ *JetStream) PullWithTime(stream string, name string, time time.Time) (*Puller, *berror.ErrMsg)
- func (this_ *JetStream) UpdateConsumer(stream string, name string, seq uint64) *berror.ErrMsg
- type Puller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JetStream ¶
type JetStream struct {
// contains filtered or unexported fields
}
func NewJetStream ¶
func (*JetStream) AddStreamIfNoExist ¶
func (*JetStream) ConsumerInfo ¶
func (*JetStream) DeleteConsumer ¶
func (*JetStream) DeleteStreamIfExist ¶
func (*JetStream) PullWithAll ¶
PullWithAll Pull all data
func (*JetStream) PullWithNewest ¶
PullWithNewest Pull the latest data
func (*JetStream) PullWithSeq ¶
func (this_ *JetStream) PullWithSeq(stream string, name string, seq uint64) (*Puller, *berror.ErrMsg)
PullWithSeq Start pulling data from the specified Sequence
Click to show internal directories.
Click to hide internal directories.