model

package
v0.0.0-...-6e117fe Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShuffelUsers

func ShuffelUsers(users []*User)

Types

type Media

type Media struct {
	ID        string
	URL       string
	UserID    int64
	Username  string
	LikeCount int
	PostedAt  time.Time
}

func (*Media) String

func (m *Media) String() string

type MediaState

type MediaState int
const (
	MediaAvailable MediaState = iota
	MediaRejected
	MediaUsed
)

type Record

type Record struct {
	Media
	FaceCount int
	State     MediaState
}

func (*Record) String

func (rec *Record) String() string

type User

type User struct {
	ID   int64
	Name string
}

func (*User) String

func (u *User) String() string

type UserDetails

type UserDetails struct {
	User
	RealName      string
	FollowerCount int
}

Jump to

Keyboard shortcuts

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