models

package
v0.0.0-...-41e7d8c Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2014 License: GPL-2.0 Imports: 5 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          int64  `json:"id,omitempty"`
	Version     int64  `json:"-"`
	Created     int64  `json:"-"`
	Updated     int64  `json:"-"`
	Name        string `json:"name" binding:"required"`
	Description string `json:"description,omitempty"`
	Email       string `json:"email" binding:"required"`
}

func (*Account) PreInsert

func (a *Account) PreInsert(s gorp.SqlExecutor) error

implement the PreInsert and PreUpdate hooks

func (*Account) PreUpdate

func (a *Account) PreUpdate(s gorp.SqlExecutor) error

func (*Account) ToString

func (a *Account) ToString() string

func (*Account) Validate

func (account *Account) Validate(v *revel.Validation)

type AccountGroup

type AccountGroup struct {
	Id        int64  `json:"id,omitempty"`
	Version   int64  `json:"-"`
	Created   int64  `json:"-"`
	Updated   int64  `json:"-"`
	Name      string `json:"name"`
	Default   bool   `json:"default" db:"default_group"`
	AccountId int64  `json:"accountId" db:"account_id"`
}

func (*AccountGroup) PreInsert

func (a *AccountGroup) PreInsert(s gorp.SqlExecutor) error

implement the PreInsert and PreUpdate hooks

func (*AccountGroup) PreUpdate

func (a *AccountGroup) PreUpdate(s gorp.SqlExecutor) error

func (*AccountGroup) ToString

func (a *AccountGroup) ToString() string

func (*AccountGroup) Validate

func (a *AccountGroup) Validate(v *revel.Validation)

type DataStream

type DataStream struct {
	Id                int64  `json:"id,omitempty"`
	Version           int64  `json:"-"`
	Created           int64  `json:"-"`
	Updated           int64  `json:"-"`
	Name              string `json:"name" binding:"required"`
	Description       string `json:"description,omitempty"`
	ProjectId         int64  `json:"projectId" db:"project_id"`
	AccountId         int64  `json:"accountId" db:"account_id"`
	DataStreamGroupId int64  `json:"dataStreamGroupId" db:"data_stream_group_id"`
}

func (*DataStream) PreInsert

func (a *DataStream) PreInsert(s gorp.SqlExecutor) error

implement the PreInsert and PreUpdate hooks

func (*DataStream) PreUpdate

func (a *DataStream) PreUpdate(s gorp.SqlExecutor) error

func (*DataStream) ToString

func (a *DataStream) ToString() string

func (*DataStream) Validate

func (d *DataStream) Validate(v *revel.Validation)

type DataStreamGroup

type DataStreamGroup struct {
	Id          int64  `json:"id,omitempty"`
	Version     int64  `json:"-"`
	Created     int64  `json:"-"`
	Updated     int64  `json:"-"`
	Name        string `json:"name" binding:"required"`
	Description string `json:"description,omitempty"`
	ProjectId   int64  `json:"projectId" db:"project_id"`
	AccountId   int64  `json:"accountId" db:"account_id"`
}

func (*DataStreamGroup) PreInsert

func (a *DataStreamGroup) PreInsert(s gorp.SqlExecutor) error

implement the PreInsert and PreUpdate hooks

func (*DataStreamGroup) PreUpdate

func (a *DataStreamGroup) PreUpdate(s gorp.SqlExecutor) error

func (*DataStreamGroup) ToString

func (a *DataStreamGroup) ToString() string

func (*DataStreamGroup) Validate

func (d *DataStreamGroup) Validate(v *revel.Validation)

type Error

type Error struct {
	Error string
}

type KeyPair

type KeyPair struct {
	Id        int64  `json:"id,omitempty"`
	Version   int64  `json:"-"`
	Created   int64  `json:"-"`
	Updated   int64  `json:"-"`
	AccessKey string `json:"accessKey" db:"access_key"`
	Secret    string `json:"secret" db:"-"`
	Label     string `json:"label"`
	Active    bool   `json:"active"`
	Hashed    []byte `json:"-"`
	LoginId   int64  `json:"loginId" db:"login_id"`
}

func (*KeyPair) PreInsert

func (k *KeyPair) PreInsert(s gorp.SqlExecutor) error

implement the PreInsert and PreUpdate hooks

func (*KeyPair) ToString

func (k *KeyPair) ToString() string

type Login

type Login struct {
	Id             int64  `json:"id,omitempty"`
	Version        int64  `json:"-"`
	Created        int64  `json:"-"`
	Updated        int64  `json:"-"`
	Email          string `json:"email"`
	FirstName      string `json:"firstName" db:"first_name"`
	LastName       string `json:"lastName" db:"last_name"`
	Gender         string `json:"gender"`
	Picture        string `json:"picture"`
	AccessToken    string `json:"-" db:"access_token"`
	Network        string `json:"-"`
	AccountGroupId int64  `json:"accountGroupId" db:"account_group_id"`
}

func (*Login) PreInsert

func (l *Login) PreInsert(s gorp.SqlExecutor) error

implement the PreInsert and PreUpdate hooks

func (*Login) ToString

func (l *Login) ToString() string

type Project

type Project struct {
	Id          int64  `json:"id,omitempty"`
	Version     int64  `json:"-"`
	Created     int64  `json:"-"`
	Updated     int64  `json:"-"`
	Name        string `json:"name" binding:"required"`
	Description string `json:"description,omitempty"`
	AccountId   int64  `json:"accountId" db:"account_id"`
}

func (*Project) PreInsert

func (a *Project) PreInsert(s gorp.SqlExecutor) error

implement the PreInsert and PreUpdate hooks

func (*Project) PreUpdate

func (a *Project) PreUpdate(s gorp.SqlExecutor) error

func (*Project) ToString

func (a *Project) ToString() string

func (*Project) Validate

func (project *Project) Validate(v *revel.Validation)

Jump to

Keyboard shortcuts

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