Documentation
¶
Index ¶
- Variables
- type Clients
- func (self *Clients) Create(client *t.Client) error
- func (self *Clients) Delete(id t.ClientId) error
- func (self *Clients) Find(id t.ClientId) (t.Client, error)
- func (self *Clients) FindAll(status t.ClientStatus) (t.Clients, error)
- func (self *Clients) FindAllActive() (t.Clients, error)
- func (self *Clients) FindByClientIdAndToken(clientId t.ClientClientId, token string) (t.Client, error)
- func (self *Clients) FindByUserId(userId t.UserId) (t.Client, error)
- func (self *Clients) FindMulti(ids t.ClientIds) (t.Clients, error)
- func (self *Clients) Update(client t.Client) (t.Client, error)
- type Storage
- func (self *Storage) Delete(id t.ClientId) error
- func (self *Storage) Find(id t.ClientId) (t.Client, error)
- func (self *Storage) FindAllActive() (t.Clients, error)
- func (self *Storage) FindAllByStatus(status t.ClientStatus) (t.Clients, error)
- func (self *Storage) FindByClientIdAndToken(clientId t.ClientClientId, token string) (t.Client, error)
- func (self *Storage) FindByUserId(userId t.UserId) (t.Client, error)
- func (self *Storage) FindMulti(ids t.ClientIds) (t.Clients, error)
- func (self *Storage) Save(client *t.Client) error
- func (self *Storage) Update(client t.Client) (t.Client, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClientNotFound error = fmt.Errorf("client: Client not found!")
)
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { AppEngineContext appengine.Context // contains filtered or unexported fields }
func NewStorage ¶
func (*Storage) FindAllByStatus ¶
func (*Storage) FindByClientIdAndToken ¶
Click to show internal directories.
Click to hide internal directories.