Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewSequence)
ProviderSet is data providers.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type MessageRepo ¶
type MessageRepo interface { Store(ctx context.Context, message *Message) (string, error) StoreBatch(ctx context.Context, messages []*Message) (failed []*Message, err error) Update(ctx context.Context, objId string, message *Message) error LoadById(ctx context.Context, objId string) (*Message, error) DeleteById(ctx context.Context, objId string) error Load(ctx context.Context, id string, seq int64) (*Message, error) Scan(ctx context.Context, id string, param ScanParameter) ([]Message, error) }
func NewMessageRepo ¶
func NewMessageRepo(data *Data, database, collection string, logger log.Logger) MessageRepo
type ScanParameter ¶
Click to show internal directories.
Click to hide internal directories.