Documentation
¶
Index ¶
- type Consensus
- type Distributed
- func (m *Distributed) CreateSession(ctx context.Context, userID int64) (session *model.Session, err error)
- func (m *Distributed) GetServers(ctx context.Context) ([]*api.Server, error)
- func (m *Distributed) GetSession(ctx context.Context, token string) (*model.Session, error)
- func (m *Distributed) ListUserSessions(ctx context.Context, userID int64) ([]*model.Session, error)
- func (m *Distributed) RemoveSession(ctx context.Context, token string) error
- func (m *Distributed) RemoveUserSessions(ctx context.Context, userID int64) error
- type SessionsRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Distributed ¶
type Distributed struct {
// contains filtered or unexported fields
}
func New ¶
func New(consensus Consensus, sessionsRepo SessionsRepository, log *logger.Logger) *Distributed
func (*Distributed) CreateSession ¶
func (*Distributed) GetServers ¶
func (*Distributed) GetSession ¶
func (*Distributed) ListUserSessions ¶
func (*Distributed) RemoveSession ¶
func (m *Distributed) RemoveSession(ctx context.Context, token string) error
func (*Distributed) RemoveUserSessions ¶
func (m *Distributed) RemoveUserSessions(ctx context.Context, userID int64) error
Click to show internal directories.
Click to hide internal directories.