controllers

package
v0.0.0-...-f75971f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Srv = server.NewDefaultServer(manager)

oauth2 server

Functions

func AuthInit

func AuthInit()

AuthInit initializes authentication

func GetCredentials

func GetCredentials(w http.ResponseWriter, r *http.Request)

GetCredentials sends client credentials

func GetToken

func GetToken(w http.ResponseWriter, r *http.Request)

GetToken sends access_token

func Greet

func Greet(w http.ResponseWriter, r *http.Request)

Greet is the response for api/v1

func Register

func Register(w http.ResponseWriter, r *http.Request)

Register

func Verify

func Verify(w http.ResponseWriter, r *http.Request)

Verify accessToken with client

Types

type Welcome

type Welcome struct {
	Greet    string `json:"greet"`
	Doc      string `json:"link_to_doc"`
	Github   string `json:"github"`
	Examples string `json:"examples"`
}

Welcome !! The content below is only a placeholder and can be replaced.

Jump to

Keyboard shortcuts

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