dvproviders

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParametersName

func GetParametersName(name string) string

func MakeProviderBlocks

func MakeProviderBlocks(configs []ProviderConfig) (res []dvcontext.ProcessorBlock)

func MakeProviderGlobalInitialization

func MakeProviderGlobalInitialization(providerInits map[string]map[string]string)

func PlaceProviderReferences

func PlaceProviderReferences(request *dvcontext.RequestContext)

func RegisterProvider

func RegisterProvider(config *RegistrationConfig, silent bool) bool

Types

type MethodEndPointHandler

type MethodEndPointHandler func(*dvcontext.RequestContext) bool

type MethodGlobalInitHandler

type MethodGlobalInitHandler func(map[string]string) error

type MethodServerInitHandler

type MethodServerInitHandler func(params []string) (map[string]string, error)

type ProviderConfig

type ProviderConfig struct {
	Name   string   `json:"name"`
	Urls   string   `json:"url"`
	Params []string `json:"params"`
}

type RegistrationConfig

type RegistrationConfig struct {
	Name              string
	EndPointHandler   dvcontext.ProcessorEndPointHandler
	GlobalInitHandler MethodGlobalInitHandler
	ServerInitHandler MethodServerInitHandler
}

func GetRegisteredConfig

func GetRegisteredConfig(name string, silent bool) *RegistrationConfig

Jump to

Keyboard shortcuts

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