auth

package
v0.0.0-...-44af80e Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	component.Core
}

Endpoint contains the dependencies.

func New

func New(bc component.Core) *Endpoint

New returns a new instance of the endpoint.

func (*Endpoint) Index

func (p *Endpoint) Index(w http.ResponseWriter, r *http.Request) (int, error)

Index . swagger:route GET /v1/auth auth AuthIndex

Get an access token.

Responses:

200: AuthIndexResponse

func (*Endpoint) Routes

func (p *Endpoint) Routes(router component.IRouter)

Routes will set up the endpoints.

Jump to

Keyboard shortcuts

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