domain

package
v0.0.0-...-97b4fb6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id       string        `bson:"_id" json:"id"`
	Email    string        `bson:"email" json:"email"`
	Username string        `bson:"userName" json:"userName"`
	Avatar   string        `bson:"avatar" json:"avatar"`
	Token    *oauth2.Token `bson:"token" json:"token"`
	Data     Data          `bson:"data" json:"data"`
}

Account is base model

func MakeAccount

func MakeAccount(email, username, avatar string, token *oauth2.Token, data Data) *Account

MakeAccount constructor

type Data

type Data map[string]interface{}

Data used to store arbitrary info of account end users will have different models

Jump to

Keyboard shortcuts

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