hooks

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 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]any, error)
	TicketWriteFilterFunc     func(ctx context.Context) (string, map[string]any, 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]any, error)

func (*Hooks) TicketWriteFilter

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

Jump to

Keyboard shortcuts

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