backend

package
v0.0.0-...-eb83a84 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Backends = map[string]Backend{}

Functions

func AddBackend

func AddBackend(name string, backend Backend)

func NewK8sServiceBackend

func NewK8sServiceBackend()

func NewYuanrongBackend

func NewYuanrongBackend(server string)

Types

type Backend

type Backend interface {
	Invoke(string, *fasthttp.Request, *fasthttp.Response) error
}

func GetBackend

func GetBackend(name string) (Backend, error)

type K8sServiceBackend

type K8sServiceBackend struct {
}

func (*K8sServiceBackend) Invoke

func (k *K8sServiceBackend) Invoke(target string, req *fasthttp.Request, res *fasthttp.Response) error

type YuanrongBackend

type YuanrongBackend struct {
	Server string
}

func (*YuanrongBackend) Invoke

func (y *YuanrongBackend) Invoke(target string, req *fasthttp.Request, res *fasthttp.Response) error

Jump to

Keyboard shortcuts

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