Changeset 0.24.3 (#159)
This commit is contained in:
@@ -46,6 +46,7 @@ type Stores struct {
|
||||
GitCredentials GitCredentialStore
|
||||
CapOverrides CapabilityOverrideStore
|
||||
RoutingPolicies RoutingPolicyStore
|
||||
Sessions SessionStore
|
||||
}
|
||||
|
||||
// =========================================
|
||||
@@ -634,6 +635,19 @@ type RoutingPolicyStore interface {
|
||||
ListForTeam(ctx context.Context, teamID string) ([]models.RoutingPolicy, error)
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// SESSION STORE (v0.24.3)
|
||||
// =========================================
|
||||
|
||||
type SessionStore interface {
|
||||
Create(ctx context.Context, s *models.SessionParticipant) error
|
||||
GetByToken(ctx context.Context, token string) (*models.SessionParticipant, error)
|
||||
GetByID(ctx context.Context, id string) (*models.SessionParticipant, error)
|
||||
ListForChannel(ctx context.Context, channelID string) ([]models.SessionParticipant, error)
|
||||
CountForChannel(ctx context.Context, channelID string) (int, error)
|
||||
Delete(ctx context.Context, id string) error
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// SHARED TYPES
|
||||
// =========================================
|
||||
|
||||
Reference in New Issue
Block a user