janus

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

go-janus

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyExists = errors.New("API already registered with different surname")

Functions

This section is empty.

Types

type Janus

type Janus struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(endpoint string, upstream Upstream) *Janus

func NewNoOp

func NewNoOp() *Janus

func (*Janus) RegisterChi

func (j *Janus) RegisterChi(r chi.Router) error

RegisterChi takes router and registers all endpoints in janus

func (*Janus) RegisterGojiEndpoint

func (j *Janus) RegisterGojiEndpoint(endpoint, method string) error

func (*Janus) WithLog

func (j *Janus) WithLog(log *logan.Entry) *Janus

type Januser

type Januser interface {
	Janus() *Janus
}

func NewJanuser deprecated

func NewJanuser(getter kv.Getter) Januser

Deprecated: use copus.NewCopuser instead of it

type Upstream

type Upstream struct {
	Target  string
	Surname string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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