feat: initial commit
This commit is contained in:
12
internal/domain/port/session_store.go
Normal file
12
internal/domain/port/session_store.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package port
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/paramah/gw_telegram/internal/domain/entity"
|
||||
)
|
||||
|
||||
type SessionStore interface {
|
||||
Get(ctx context.Context, userID int64) (entity.Session, error)
|
||||
Set(ctx context.Context, session entity.Session) error
|
||||
Delete(ctx context.Context, userID int64) error
|
||||
}
|
||||
Reference in New Issue
Block a user