webbff

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "webbff"

Variables

View Source
var (
	GitCommit string
	Version   string
)

Build Variables picked up by govvv go get github.com/ahmetb/govvv

Functions

func ReverseProxy

func ReverseProxy(address string) gin.HandlerFunc

Types

type Env

type Env struct {
	service.HTTPEnv

	AllowOrigins []string
	// contains filtered or unexported fields
}

Env is a hierarchical environment configuration for the authentication service and it's API handlers.

func Load

func Load() (env Env, err error)

func (Env) Setup

func (env Env) Setup() (s Service, err error)

type MyTransport

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

func (MyTransport) RoundTrip

func (t MyTransport) RoundTrip(r *http.Request) (*http.Response, error)

type Service

type Service struct {
	Env
	service.HTTPServer
	AllowOrigins map[string]struct{}
}

Service offers the APIs of the authentication service. This struct holds hierarchically structured state that is shared between requests.

func Main

func Main() (webbffService Service, err error)

func (*Service) Run

func (s *Service) Run(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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