events

package
v3.22.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2021 License: GPL-3.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EVGetActions       = newAction("EV_GetActions", security.ScopeGlobal)
	EVGetEvents        = newAction("EV_GetEvents", security.ScopeRealm)
	EVGetEventsSummary = newAction("EV_GetEventsSummary", security.ScopeRealm)
	EVGetUserEvents    = newAction("EV_GetUserEvents", security.ScopeGroup)
)

Actions used for authorization module

Functions

func GetActions

func GetActions() []security.Action

GetActions returns available actions

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 MakeEventsHandler

func MakeEventsHandler(e endpoint.Endpoint, logger log.Logger) *http_transport.Server

MakeEventsHandler make an HTTP handler for an Events endpoint.

func MakeGetActionsEndpoint

func MakeGetActionsEndpoint(ec Component) cs.Endpoint

MakeGetActionsEndpoint creates an endpoint for GetActions

func MakeGetEventsEndpoint

func MakeGetEventsEndpoint(ec Component) cs.Endpoint

MakeGetEventsEndpoint makes the events endpoint.

func MakeGetEventsSummaryEndpoint

func MakeGetEventsSummaryEndpoint(ec Component) cs.Endpoint

MakeGetEventsSummaryEndpoint makes the events summary endpoint.

func MakeGetUserEventsEndpoint

func MakeGetUserEventsEndpoint(ec Component) cs.Endpoint

MakeGetUserEventsEndpoint makes the events summary endpoint.

Types

type Component

Component is the interface of the events component.

func NewComponent

func NewComponent(db app.EventsDBModule, eventDBModule database.EventsDBModule, logger app.Logger) Component

NewComponent returns a component

type Endpoints

type Endpoints struct {
	GetActions                  endpoint.Endpoint
	GetEvents                   endpoint.Endpoint
	GetEventsSummary            endpoint.Endpoint
	GetUserEvents               endpoint.Endpoint
	GetStatistics               endpoint.Endpoint
	GetStatisticsUsers          endpoint.Endpoint
	GetStatisticsAuthenticators endpoint.Endpoint
}

Endpoints exposed for path /events

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL