auth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadTokenAuth

func ReadTokenAuth(data *http.Response) (string, error)

ReadTokenAuth get auth data from server

func SignOn

func SignOn(username string, password string) (*http.Response, error)

SignOn perform remote auth

Types

type Credential

type Credential struct {
	Token string `json:"token"`
}

Credential response token data

Jump to

Keyboard shortcuts

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