Documentation ¶
Index ¶
- type AppLogConsumeProgress
- type ConsumerEntry
- type InMemoryConsumerApiProvider
- func (consumer *InMemoryConsumerApiProvider) Cleanup()
- func (consumer *InMemoryConsumerApiProvider) GetLogConsume(ctx context.Context, consumerID string) (*AppLogConsumeProgress, error)
- func (consumer *InMemoryConsumerApiProvider) List(ctx context.Context) ([]*AppLogConsumeProgress, error)
- func (consumer *InMemoryConsumerApiProvider) LogConsume(ctx context.Context, request *AppLogConsumeProgress) error
- type SQLConsumerApiProvider
- func (consumer *SQLConsumerApiProvider) GetLogConsume(ctx context.Context, consumerID string) (*AppLogConsumeProgress, error)
- func (consumer *SQLConsumerApiProvider) List(ctx context.Context) ([]*AppLogConsumeProgress, error)
- func (consumer *SQLConsumerApiProvider) LogConsume(ctx context.Context, request *AppLogConsumeProgress) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLogConsumeProgress ¶
type ConsumerEntry ¶
type InMemoryConsumerApiProvider ¶
type InMemoryConsumerApiProvider struct {
// contains filtered or unexported fields
}
func NewInMemoryConsumerApiProvider ¶
func NewInMemoryConsumerApiProvider() *InMemoryConsumerApiProvider
func (*InMemoryConsumerApiProvider) Cleanup ¶
func (consumer *InMemoryConsumerApiProvider) Cleanup()
func (*InMemoryConsumerApiProvider) GetLogConsume ¶
func (consumer *InMemoryConsumerApiProvider) GetLogConsume(ctx context.Context, consumerID string) (*AppLogConsumeProgress, error)
func (*InMemoryConsumerApiProvider) List ¶
func (consumer *InMemoryConsumerApiProvider) List(ctx context.Context) ([]*AppLogConsumeProgress, error)
func (*InMemoryConsumerApiProvider) LogConsume ¶
func (consumer *InMemoryConsumerApiProvider) LogConsume(ctx context.Context, request *AppLogConsumeProgress) error
type SQLConsumerApiProvider ¶
type SQLConsumerApiProvider struct {
// contains filtered or unexported fields
}
func (*SQLConsumerApiProvider) GetLogConsume ¶
func (consumer *SQLConsumerApiProvider) GetLogConsume(ctx context.Context, consumerID string) (*AppLogConsumeProgress, error)
func (*SQLConsumerApiProvider) List ¶
func (consumer *SQLConsumerApiProvider) List(ctx context.Context) ([]*AppLogConsumeProgress, error)
func (*SQLConsumerApiProvider) LogConsume ¶
func (consumer *SQLConsumerApiProvider) LogConsume(ctx context.Context, request *AppLogConsumeProgress) error
type Store ¶
type Store interface { LogConsume(ctx context.Context, request *AppLogConsumeProgress) error GetLogConsume(ctx context.Context, consumerID string) (*AppLogConsumeProgress, error) List(ctx context.Context) ([]*AppLogConsumeProgress, error) }
Click to show internal directories.
Click to hide internal directories.