Documentation
¶
Index ¶
- Constants
- func NewJetstreamConsumer(jStream *Stream, streamName string) *jetstreamConsumer
- type KeyHistory
- type Stream
- func (this *Stream) AddKeyValue(bucket string, key string, value []byte) error
- func (this *Stream) CreateBucket(bucket string, history int) error
- func (this *Stream) CreateConsumer(stream string, durable string) (jetstream.Consumer, error)
- func (this *Stream) CreateStream(subjects []string) (jetstream.Stream, error)
- func (this *Stream) DeleteKeyValue(bucket string, key string) error
- func (this *Stream) FetchAllMessages(stream string, filters []string, startTime *time.Time) ([]string, error)
- func (this *Stream) FetchLastMessageBySubject(filters []string) ([]byte, error)
- func (this *Stream) FetchLastMessagePerSubject(filters []string) (map[string][][]byte, error)
- func (this *Stream) GetKVs(nc *nats.Conn, bucket string) (map[string][]byte, error)
- func (this *Stream) GetKeyHistory(bucket string, key string) error
- func (this *Stream) GetKeys(bucket string) ([]string, error)
- func (this *Stream) GetMessageByID(s jetstream.Stream, sequence uint64) ([]byte, error)
- func (this *Stream) GetMessageBySequence(stream string, sequence uint64) ([]byte, error)
- func (this *Stream) GetStream(name string) (*nats.Conn, jetstream.Stream, error)
- func (this *Stream) GetValueByKey(bucket string, key string) ([]byte, error)
- func (this *Stream) Publish(subject string, payload []byte) (*jetstream.PubAck, error)
- func (this *Stream) PublishMsg(subject string, payload []byte, publisher string) (*jetstream.PubAck, error)
- func (this *Stream) PutKeyValue(bucket string, key string, value []byte) error
- func (this *Stream) SetCredentialsPath(path string)
- func (this *Stream) SetNKeys(user, seed string)
- func (this *Stream) UpdateKeyValue(bucket string, key string, value []byte, revision uint64) error
Constants ¶
View Source
const ( FETCH_NO_WAIT = 100000 MAX_ACK_PENDING = -1 MAX_DELIVERY = -1 MAX_BYTES = 1000000000 // 1 GiB )
Variables ¶
This section is empty.
Functions ¶
func NewJetstreamConsumer ¶
Types ¶
type KeyHistory ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) AddKeyValue ¶
func (*Stream) CreateConsumer ¶
func (*Stream) CreateStream ¶
func (*Stream) FetchAllMessages ¶
func (*Stream) FetchLastMessageBySubject ¶
func (*Stream) FetchLastMessagePerSubject ¶
func (*Stream) GetMessageByID ¶
func (*Stream) GetMessageBySequence ¶
func (*Stream) GetValueByKey ¶
func (*Stream) PublishMsg ¶
func (*Stream) PutKeyValue ¶
func (*Stream) SetCredentialsPath ¶
Click to show internal directories.
Click to hide internal directories.