hooks

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hooks

type Hooks struct {
	DatabaseAfterConnectFuncs []func(ctx context.Context, client driver.Client, name string)
	IngestionFilterFunc       func(ctx context.Context, index *index.Index) (string, error)
	TicketReadFilterFunc      func(ctx context.Context) (string, map[string]interface{}, error)
	TicketWriteFilterFunc     func(ctx context.Context) (string, map[string]interface{}, error)
	GetGroupsFunc             func(ctx context.Context, username string) ([]string, error)
}

func (*Hooks) DatabaseAfterConnect

func (h *Hooks) DatabaseAfterConnect(ctx context.Context, client driver.Client, name string)

func (*Hooks) GetGroups

func (h *Hooks) GetGroups(ctx context.Context, username string) ([]string, error)

func (*Hooks) IngestionFilter

func (h *Hooks) IngestionFilter(ctx context.Context, index *index.Index) (string, error)

func (*Hooks) TicketReadFilter

func (h *Hooks) TicketReadFilter(ctx context.Context) (string, map[string]interface{}, error)

func (*Hooks) TicketWriteFilter

func (h *Hooks) TicketWriteFilter(ctx context.Context) (string, map[string]interface{}, error)

Jump to

Keyboard shortcuts

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