[FEATURE] новый метод для store #359

Open
opened 2024-11-21 16:22:22 +03:00 by vtolstov · 0 comments
Owner

type EventType int

const (
EventTypeUnknown = iota
EventTypeConnect
EventTypeDisconnect
)

type Event interface {
Error() error
Type EventType

}

type Watcher interface {
// Next is a blocking call
Next() (Event, error)
// Stop stops the watcher
Stop()
}

func Watch(context.Context) (Watcher, error)

type EventType int const ( EventTypeUnknown = iota EventTypeConnect EventTypeDisconnect ) type Event interface { Error() error Type EventType } type Watcher interface { // Next is a blocking call Next() (Event, error) // Stop stops the watcher Stop() } func Watch(context.Context) (Watcher, error)
atolstikhin was assigned by vtolstov 2024-11-21 16:22:30 +03:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: unistack-org/micro#359
No description provided.