dvproviders

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 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 []dvmeta.ProcessorBlock)

func MakeProviderGlobalInitialization

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

func PlaceProviderReferences

func PlaceProviderReferences(request *dvmeta.RequestContext)

func RegisterProvider

func RegisterProvider(config *RegistrationConfig, silent bool) bool

Types

type MethodEndPointHandler

type MethodEndPointHandler func(*dvmeta.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   dvmeta.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