Versions in this module Expand all Collapse all v0 v0.1.0 Apr 28, 2026 Changes in this version + var ErrShieldQuotaBlown = errors.New("Shield Quota Suprassed") + type PublicIDGenerator struct + func (pig *PublicIDGenerator) GetNewPublicID() (string, error) + type Shield struct + Color string + Created time.Time + Name string + PublicID string + Secret string + ShieldID int64 + Text string + Title string + Updated time.Time + UserID int64 + type ShieldMapper struct + func NewShieldMapper(db *sql.DB) *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 struct + Email string + Login string + UserID int64 + type UserMapper struct + func NewUserMapper(db *sql.DB) *UserMapper + func (um *UserMapper) GetDebugUser() *User + func (um *UserMapper) Save(u *User) error