models

package
v0.0.0-...-7893ca6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID        bson.ObjectId `json:"id" bson:"_id"`
	Email     string        `json:"email" bson:"email"`
	Login     string        `json:"login" bson:"login"`
	AvatarURL string        `json:"avatar_url" bson:"avatarURL"`
	Name      string        `json:"name" bson:"name"`
	Created   time.Time     `json:"created" bson:"created"`
	Updated   time.Time     `json:"updated" bson:"updated"`
}

User represents a platform user

func (*User) ToByte

func (u *User) ToByte() ([]byte, error)

ToByte converts the user in a byte array

Jump to

Keyboard shortcuts

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