types

package
v0.1.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 {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

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 {
	Id          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	City        string `json:"city"`
	State       string `json:"state"`
	Country     string `json:"country"`
}

type Set

type Set struct {
	Id           int    `json:"id"`
	UserId       int    `json:"user_id"`
	ArtistId     int    `json:"artist_id"`
	ArtistName   string `json:"artist_name"`
	LocationId   int    `json:"location_id"`
	LocationName string `json:"location_name"`
}

type User

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

Jump to

Keyboard shortcuts

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