types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	Name string `json:"name"`
	Id   int    `json:"id"`
}

type Claims

type Claims struct {
	Username string `json:"username"`
	Role     string `json:"role"`
	Id       string `json:"id"`
	jwt.StandardClaims
}

type Error

type Error interface {
	StatusCode() int
	Description() string
}

type Location

type Location struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	City        string `json:"city"`
	State       string `json:"state"`
	Country     string `json:"country"`
	Id          int    `json:"id"`
}

type Set

type Set struct {
	User     int `json:"user_id"`
	Location int `json:"location_id"`
	Artist   int `json:"artist_id"`
	Id       int `json:"id"`
}

type User

type User struct {
	Username  string `json:"username"`
	Email     string `json:"email"`
	Password  string `json:"password"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Id        string `json:"id"`
}

Jump to

Keyboard shortcuts

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