Documentation ¶
Index ¶
- Variables
- type PublicIDGenerator
- type Shield
- type ShieldMapper
- func (sm *ShieldMapper) Delete(n *Shield) error
- func (sm *ShieldMapper) GetFromID(id int64) (*Shield, error)
- func (sm *ShieldMapper) GetFromPublicID(publicID string) (*Shield, error)
- func (sm *ShieldMapper) GetFromSecret(secret string) (*Shield, error)
- func (sm *ShieldMapper) GetFromUserID(userID int64) ([]*Shield, error)
- func (sm *ShieldMapper) GetFromUserIDAndID(userID, id int64) (*Shield, error)
- func (sm *ShieldMapper) New(userID int64) (*Shield, error)
- func (sm *ShieldMapper) Save(n *Shield) error
- type User
- type UserMapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrShieldQuotaBlown = errors.New("Shield Quota Suprassed")
Functions ¶
This section is empty.
Types ¶
type PublicIDGenerator ¶
func (*PublicIDGenerator) GetNewPublicID ¶
func (pig *PublicIDGenerator) GetNewPublicID() (string, error)
type ShieldMapper ¶
type ShieldMapper struct {
// contains filtered or unexported fields
}
func NewShieldMapper ¶
func NewShieldMapper(db *sql.DB) *ShieldMapper
func (*ShieldMapper) Delete ¶
func (sm *ShieldMapper) Delete(n *Shield) error
func (*ShieldMapper) GetFromPublicID ¶
func (sm *ShieldMapper) GetFromPublicID(publicID string) (*Shield, error)
func (*ShieldMapper) GetFromSecret ¶
func (sm *ShieldMapper) GetFromSecret(secret string) (*Shield, error)
func (*ShieldMapper) GetFromUserID ¶
func (sm *ShieldMapper) GetFromUserID(userID int64) ([]*Shield, error)
func (*ShieldMapper) GetFromUserIDAndID ¶
func (sm *ShieldMapper) GetFromUserIDAndID(userID, id int64) (*Shield, error)
func (*ShieldMapper) Save ¶
func (sm *ShieldMapper) Save(n *Shield) error
type UserMapper ¶
type UserMapper struct {
// contains filtered or unexported fields
}
func NewUserMapper ¶
func NewUserMapper(db *sql.DB) *UserMapper
func (*UserMapper) GetDebugUser ¶
func (um *UserMapper) GetDebugUser() *User
func (*UserMapper) Save ¶
func (um *UserMapper) Save(u *User) error
Click to show internal directories.
Click to hide internal directories.