proxy

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func NewBackend

func NewBackend(cfg *BackendConfig) (*Backend, error)

func (*Backend) Requests

func (b *Backend) Requests() func() int32

func (*Backend) Run

func (b *Backend) Run() error

type BackendConfig

type BackendConfig struct {
	IdentityPath    string
	EndpointAddress string
	ShrToken        string
	Insecure        bool
	RequestsChan    chan *endpoints.Request
}

type Frontend

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

func NewFrontend

func NewFrontend(cfg *FrontendConfig) (*Frontend, error)

func (*Frontend) Run

func (h *Frontend) Run() error

type FrontendConfig

type FrontendConfig struct {
	IdentityName string
	ShrToken     string
	Address      string
	RequestsChan chan *endpoints.Request
}

func DefaultFrontendConfig

func DefaultFrontendConfig(identityName string) *FrontendConfig

type WebBackend

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

func NewWebBackend

func NewWebBackend(cfg *WebBackendConfig) (*WebBackend, error)

func (*WebBackend) Requests

func (self *WebBackend) Requests() func() int32

func (*WebBackend) Run

func (self *WebBackend) Run() error

type WebBackendConfig

type WebBackendConfig struct {
	IdentityPath string
	WebRoot      string
	ShrToken     string
	RequestsChan chan *endpoints.Request
}

Jump to

Keyboard shortcuts

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