Documentation ¶
Index ¶
- type Client
- type ClientOpts
- type ConsumerManager
- type CreateStoreArgs
- type JetstreamClient
- func (jc *JetstreamClient) DeleteConsumer(ctx context.Context, stream string, consumer string) error
- func (jc *JetstreamClient) GetConsumerInfo(ctx context.Context, stream string, consumer string) (*jetstream.ConsumerInfo, error)
- func (jc *JetstreamClient) ListConsumers(ctx context.Context, stream string) ([]*jetstream.ConsumerInfo, error)
- type KeyValueManager
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOpts ¶
type ConsumerManager ¶
type CreateStoreArgs ¶
type JetstreamClient ¶
func NewJetstreamClient ¶
func NewJetstreamClient(nc *Client) (*JetstreamClient, error)
func (*JetstreamClient) DeleteConsumer ¶
func (jc *JetstreamClient) DeleteConsumer(ctx context.Context, stream string, consumer string) error
DeleteConsumer implements ConsumerManager.
func (*JetstreamClient) GetConsumerInfo ¶
func (jc *JetstreamClient) GetConsumerInfo(ctx context.Context, stream string, consumer string) (*jetstream.ConsumerInfo, error)
GetConsumerInfo implements ConsumerManager
func (*JetstreamClient) ListConsumers ¶
func (jc *JetstreamClient) ListConsumers(ctx context.Context, stream string) ([]*jetstream.ConsumerInfo, error)
ListConsumers implements ConsumerManager.
type KeyValueManager ¶
type KeyValueManager struct {
// contains filtered or unexported fields
}
func NewKeyValueManager ¶
func NewKeyValueManager(jc *JetstreamClient, bucketName string) (*KeyValueManager, error)
func (KeyValueManager) CreateStore ¶
func (kvm KeyValueManager) CreateStore(ctx context.Context, store string, args CreateStoreArgs) error
func (KeyValueManager) DeleteStore ¶
func (kvm KeyValueManager) DeleteStore(ctx context.Context, store string) error
func (KeyValueManager) ListStores ¶
func (kvm KeyValueManager) ListStores(ctx context.Context) []string
Click to show internal directories.
Click to hide internal directories.