Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStorageError ¶
ParseStorageError parses common storage errors into a user-readable format.
Types ¶
type Service ¶
type Service struct { Logger logger.Logger ConnFactory *secureconn.Factory Storage storage.Storage AuthzClient authz.PoliciesServiceClient }
Service holds the internal state and configuration of the Teams service.
func NewInMemoryService ¶
func NewInMemoryService(l logger.Logger, connFactory *secureconn.Factory, authzClient authz.PoliciesServiceClient) (*Service, error)
NewInMemoryService returns an instance of Service that uses the memstore storage backend.
func NewPostgresService ¶
func NewPostgresService(l logger.Logger, connFactory *secureconn.Factory, migrationsConfig migration.Config, authzPoliciesClient authz.PoliciesServiceClient, authzAuthorizationClient authz.AuthorizationServiceClient) (*Service, error)
NewPostgresService returns an instance of Service that connects to a postgres storage backend.
Click to show internal directories.
Click to hide internal directories.