router

package
v0.0.0-...-45ac6ac Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2016 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(input int)

Init starts new router

func SetEntry

func SetEntry(url string)

SetEntry sets API Entrypoint

func SetTestPoint

func SetTestPoint(url string)

SetTestPoint sets endpoint for API connection test

Types

type ErrorJSON

type ErrorJSON struct {
	Error string `json:"error"`
}

type RegisterInput

type RegisterInput struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

func (RegisterInput) IsValid

func (u RegisterInput) IsValid() (err error)

type RegisterResponse

type RegisterResponse struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Token    string `json:"token"`
}

Jump to

Keyboard shortcuts

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