convert

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSkill

func CheckSkill(skill string) bool

func Del

func Del(id string)

func Set

func Set(id string, driver IConverterDriver)

Types

type FGenerateConfig

type FGenerateConfig func(cfg string) (map[string]interface{}, error)

type IChildConverter

type IChildConverter interface {
	IConverter
	Endpoint() string
}

type IConverter

type IConverter interface {
	RequestConvert(ctx eocontext.EoContext, extender map[string]interface{}) error
	ResponseConvert(ctx eocontext.EoContext) error
}

type IConverterDriver

type IConverterDriver interface {
	GetModel(model string) (FGenerateConfig, bool)
	GetConverter(model string) (IConverter, bool)
}

func Get

func Get(id string) (IConverterDriver, bool)

type IManager

type IManager interface {
	Get(id string) (IConverterDriver, bool)
	Set(id string, driver IConverterDriver)
	Del(id string)
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) Del

func (m *Manager) Del(id string)

func (*Manager) Get

func (m *Manager) Get(id string) (IConverterDriver, bool)

func (*Manager) Set

func (m *Manager) Set(id string, driver IConverterDriver)

Jump to

Keyboard shortcuts

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