tables

package
v0.0.0-...-7664a91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NaffkaTopics

type NaffkaTopics interface {
	InsertTopic(ctx context.Context, txn *sql.Tx, topicName string, topicNID int64) error
	SelectNextTopicNID(ctx context.Context, txn *sql.Tx) (topicNID int64, err error)
	SelectTopic(ctx context.Context, txn *sql.Tx, topicName string) (topicNID int64, err error)
	SelectTopics(ctx context.Context, txn *sql.Tx) (map[string]int64, error)
	InsertTopics(ctx context.Context, txn *sql.Tx, topicNID int64, messageOffset int64, topicKey, topicValue []byte, messageTimestampNs int64) error
	SelectMessages(ctx context.Context, txn *sql.Tx, topicNID, startOffset, endOffset int64) ([]types.Message, error)
	SelectMaxOffset(ctx context.Context, txn *sql.Tx, topicNID int64) (offset int64, err error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL