auth

package
v0.0.0-...-237dc80 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: MIT, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectAuthService

func ConnectAuthService(ip string, port int) (client *rpc.Client, er error)

func Setup

func Setup(config *config.Config) *jwt.GinJWTMiddleware

Types

type AuthRequest

type AuthRequest struct {
	Username    string `json:"Username"`
	Email       string `json:"Email"`
	AppToken    string `json:"AppToken"`
	AccessLevel int    `json:"AccessLevel"`
	Path        string `json:"Path"`
}

type Login

type Login struct {
	Username string `json:"Username"`
	Password string `json:"Password"`
	Email    string `json:"Email"`
}

Jump to

Keyboard shortcuts

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