models

package
v0.0.0-...-a50eb67 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2016 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" db:"id"`
	Name string `json:"name" db:"name"`
}

Artist represents an artist record.

func (Artist) Validate

func (m Artist) Validate(attrs ...string) error

Validate validates the Artist fields.

type Identity

type Identity interface {
	GetID() string
	GetName() string
}

type User

type User struct {
	ID   string
	Name string
}

func (User) GetID

func (u User) GetID() string

func (User) GetName

func (u User) GetName() string

Jump to

Keyboard shortcuts

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