plugins

package
v0.0.0-...-bd80ce3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oauth

type Oauth struct {
}

Oauth is for spring oauth

func (*Oauth) Filter

func (p *Oauth) Filter(conf interface{}, w http.ResponseWriter, r pkgHTTP.Request)

func (*Oauth) Name

func (p *Oauth) Name() string

func (*Oauth) ParseConf

func (p *Oauth) ParseConf(in []byte) (interface{}, error)

type OauthConf

type OauthConf struct {
	ApiKey   string `json:"api_key"`
	Password string `json:"password"`
	CheckUrl string `json:"check_url"`
}

type Say

type Say struct {
}

Say is a demo to show how to return data directly instead of proxying it to the upstream.

func (*Say) Filter

func (p *Say) Filter(conf interface{}, w http.ResponseWriter, r pkgHTTP.Request)

func (*Say) Name

func (p *Say) Name() string

func (*Say) ParseConf

func (p *Say) ParseConf(in []byte) (interface{}, error)

type SayConf

type SayConf struct {
	Body string `json:"body"`
}

Jump to

Keyboard shortcuts

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