Versions in this module Expand all Collapse all v0 v0.2.3 Jan 10, 2023 v0.2.2 Jan 10, 2023 Changes in this version + type Config struct + Logger zerolog.Logger + Verification config.Policy + func NewHookConfig() *Config + func (h *Config) Add(hookType Type, prio Priority, hookFunc FunctionType) + func (h *Config) Get(hookType Type) map[Priority]FunctionType + func (h *Config) Hooks() map[Type]map[Priority]FunctionType + func (h *Config) Run(ctx context.Context, args map[string]interface{}, hookType Type, ...) (map[string]interface{}, *gerr.GatewayDError) + type FunctionType func(context.Context, *structpb.Struct, ...grpc.CallOption) (*structpb.Struct, error) + type Priority uint + type Type string + const OnBooted + const OnBooting + const OnClosed + const OnClosing + const OnConfigLoaded + const OnNewClient + const OnNewLogger + const OnNewPool + const OnNewProxy + const OnNewServer + const OnOpened + const OnOpening + const OnRun + const OnShutdown + const OnSignal + const OnTick + const OnTraffic + const OnTrafficFromClient + const OnTrafficFromServer + const OnTrafficToClient + const OnTrafficToServer