Documentation ¶
Index ¶
- Variables
- func CreateSubscription(ctx context.Context, client *clientv3.Client, topic types.Topic, ...) error
- func CreateTopic(ctx context.Context, client *clientv3.Client, topic types.Topic, ...) error
- type TailSession
- func (s *TailSession) Close() error
- func (s *TailSession) Commit(ctx context.Context, b *domain.Bookmark) error
- func (s *TailSession) LeaseBookmark(ctx context.Context, b *domain.Bookmark, new []*domain.Bookmark, ...) error
- func (s *TailSession) RevokeBookmark(ctx context.Context, b *domain.Bookmark) error
- type Watcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyExist = errors.New("already exists") ErrNotFound = errors.New("not found") )
View Source
var ErrInconsistentState = errors.New("domain state is inconsistent to etcd")
View Source
var ErrMissingLease = errors.New("missing lease on key")
Functions ¶
func CreateSubscription ¶
Types ¶
type TailSession ¶
type TailSession struct {
Sess *concurrency.Session
}
func NewTailSession ¶
func NewTailSession(client *clientv3.Client) (*TailSession, error)
func (*TailSession) Close ¶
func (s *TailSession) Close() error
func (*TailSession) LeaseBookmark ¶
func (*TailSession) RevokeBookmark ¶
Click to show internal directories.
Click to hide internal directories.