Documentation ¶
Index ¶
- Constants
- func MakeAuthorizationManagementComponentMW(logger log.Logger, authorizationManager security.AuthorizationManager) func(Component) Component
- func MakeGetMigrationReportEndpoint(ec Component) cs.Endpoint
- func MakeGetStatisticsEndpoint(ec Component) cs.Endpoint
- func MakeStatisticsHandler(e endpoint.Endpoint, logger log.Logger) *http_transport.Server
- type Component
- type Endpoints
- type KeycloakClient
Constants ¶
View Source
const ( STGetStatistics = "ST_GetStatistics" STGetMigrationReport = "ST_GetMigrationReport" )
Actions used for authorization module
Variables ¶
This section is empty.
Functions ¶
func MakeAuthorizationManagementComponentMW ¶
func MakeAuthorizationManagementComponentMW(logger log.Logger, authorizationManager security.AuthorizationManager) func(Component) Component
MakeAuthorizationManagementComponentMW checks authorization and return an error if the action is not allowed.
func MakeGetMigrationReportEndpoint ¶
MakeGetMigrationReportEndpoint makes the migration reporting endpoint.
func MakeGetStatisticsEndpoint ¶
MakeGetStatisticsEndpoint makes the statistic summary endpoint.
func MakeStatisticsHandler ¶
MakeStatisticsHandler make an HTTP handler for a Statistics endpoint.
Types ¶
type Component ¶
type Component interface { GetStatistics(context.Context, string) (api.StatisticsRepresentation, error) GetMigrationReport(context.Context, string) (map[string]bool, error) }
Component is the interface of the events component.
func NewComponent ¶
func NewComponent(db keycloakb.EventsDBModule, keycloakClient KeycloakClient, logger log.Logger) Component
NewComponent returns a component
type KeycloakClient ¶
Click to show internal directories.
Click to hide internal directories.