Documentation
¶
Index ¶
Constants ¶
View Source
const ( GrantTypeClientCredentials string = "client_credentials" GrantTypeJWTBearer string = "urn:ietf:params:oauth:grant-type:jwt-bearer" )
Variables ¶
View Source
var ErrInvalidTotalSize = fmt.Errorf("invalid total size")
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI( service ServiceInterface, middleware *AuthMiddleware, tracer tracing.TracingInterface, monitor monitoring.MonitorInterface, logger logging.LoggerInterface, ) *API
func (*API) RegisterEndpoints ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(token string, tracer tracing.TracingInterface, logger logging.LoggerInterface) *AuthMiddleware
func (*AuthMiddleware) AuthMiddleware ¶
func (m *AuthMiddleware) AuthMiddleware(next http.Handler) http.Handler
type AuthorizerInterface ¶ added in v1.0.2
type ClientInterface ¶
type DatabaseInterface ¶ added in v1.0.2
type Salesforce ¶
type Salesforce struct {
// contains filtered or unexported fields
}
func NewSalesforceClient ¶
func NewSalesforceClient(c salesforce.SalesforceInterface, tracer tracing.TracingInterface, monitor monitoring.MonitorInterface, logger logging.LoggerInterface) *Salesforce
func (*Salesforce) FetchUserGroups ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( clients []ClientInterface, authz AuthorizerInterface, tracer tracing.TracingInterface, monitor monitoring.MonitorInterface, logger logging.LoggerInterface, ) *Service
type ServiceInterface ¶
type StorageHookGroupsClient ¶ added in v1.0.2
type StorageHookGroupsClient struct {
// contains filtered or unexported fields
}
func NewLocalStorageClient ¶ added in v1.0.2
func NewLocalStorageClient(db DatabaseInterface, tracer tracing.TracingInterface, monitor monitoring.MonitorInterface, logger logging.LoggerInterface) *StorageHookGroupsClient
NewLocalStorageClient creates a new StorageHookGroupsClient.
func (*StorageHookGroupsClient) FetchUserGroups ¶ added in v1.0.2
func (c *StorageHookGroupsClient) FetchUserGroups(ctx context.Context, user User) ([]*types.Group, error)
FetchUserGroups retrieves user groups from the local storage database.
Click to show internal directories.
Click to hide internal directories.