sessionservice: Introduce a well know "not exists" to sessionservice
Open
api
breaking change
enhancement
- Dominant language
- Go
- Stars
- 8.8k
- Forks
- 1k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 93
Description
Most of the methods in the Service interface can fail if the session doesn't already exist:
```
type Service interface {
Get(context.Context, *GetRequest) (StoredSession, error)
Delete(context.Context, *DeleteRequest) error
AppendEvent(context.Context, StoredSession, *session.Event) error
}
```
Introduce a well known error from the package, e.g.`ErrSessionNotFound`, to let the clients handle this case easily.
Contributor guide
Assessment
This issue has not been assessed yet.