Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthenticationHandler

func NewAuthenticationHandler(sv internal.Service) auth.AuthenticateHandlerFunc

NewAuthenticationHandler returns a new handler for /authenticate endpoint

func NewLoginHandler

func NewLoginHandler(sv internal.Service) auth.LoginHandlerFunc

NewLoginHandler returns a new handler for /login endpoint

func NewV1

func NewV1(prv *provider.Provider, logger log.Logger) (*chi.Mux, error)

NewV1 returns a new configured authproxy v1 multiplexer to be used by a router

Types

type APIMetrics

type APIMetrics struct {
	LoginAttempts metrics.Counter
}

APIMetrics represents all authproxy metrics

Directories

Path Synopsis
v1
restapi
Package restapi authproxy OpenAPI This is the api documentation for https://github.com/cbrgm/authproxy Terms Of Service: http://github.com/cbrgm/authproxy Schemes: https Host: cbrgm.net BasePath: /v1 Version: 1.0 License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0.html Contact: <chris@cbrgm.net> Consumes: - application/json Produces: - application/json swagger:meta
Package restapi authproxy OpenAPI This is the api documentation for https://github.com/cbrgm/authproxy Terms Of Service: http://github.com/cbrgm/authproxy Schemes: https Host: cbrgm.net BasePath: /v1 Version: 1.0 License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0.html Contact: <chris@cbrgm.net> Consumes: - application/json Produces: - application/json swagger:meta

Jump to

Keyboard shortcuts

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