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

Closed
opened 2024-11-21 16:22:22 +03:00 by vtolstov · 1 comment
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
Author
Owner

done

done
Sign in to join this conversation.
No Milestone
No project
No Assignees atolstikhin
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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