Documentation ¶
Index ¶
- Variables
- func Read(c *bolt.Cursor, option SelectOptions) map[string][]byte
- func Select(s *Store, bucketName []byte) func(...SelectOptions) (map[string][]byte, error)
- func SendInvite(url string, invite *model.Invite) error
- type IInvite
- type IUser
- type SelectOptions
- func (Opt *SelectOptions) FromQuery(values url.Values) *SelectOptions
- func (Opt *SelectOptions) IsLimit() (r bool)
- func (Opt *SelectOptions) IsOffset() (r bool)
- func (Opt *SelectOptions) IsValue(v []byte) bool
- func (Opt *SelectOptions) SetLimit(limit *int) *SelectOptions
- func (Opt *SelectOptions) SetOffset(Offset *int) *SelectOptions
- func (Opt *SelectOptions) SetPrefix(prefix *string) *SelectOptions
- func (Opt *SelectOptions) SetValue(value *string) *SelectOptions
- type Store
- func (s Store) Close() error
- func (s *Store) CreateOrUpdateInvite(email string) (invite *model.Invite, err error)
- func (s Store) CreateUser(user IUser) error
- func (s *Store) DeleteInvite(invite IInvite) error
- func (s Store) FirstUser() error
- func (s *Store) GetInvite(key string) (*model.Invite, error)
- func (s Store) GetUser(username string, user interface{}) (err error)
- func (s *Store) InviteToUser(key string, user IUser) error
- func (s Store) RmBucket(name []string) error
- func (s Store) RmBucketItem(bucketName []byte, key []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var INVITES = []byte("_invites")
View Source
var USERS = []byte("_users")
Functions ¶
Types ¶
type SelectOptions ¶
func NewSelectOptions ¶
func NewSelectOptions() *SelectOptions
func (*SelectOptions) FromQuery ¶
func (Opt *SelectOptions) FromQuery(values url.Values) *SelectOptions
func (*SelectOptions) IsLimit ¶
func (Opt *SelectOptions) IsLimit() (r bool)
func (*SelectOptions) IsOffset ¶
func (Opt *SelectOptions) IsOffset() (r bool)
func (*SelectOptions) IsValue ¶ added in v0.0.12
func (Opt *SelectOptions) IsValue(v []byte) bool
func (*SelectOptions) SetLimit ¶
func (Opt *SelectOptions) SetLimit(limit *int) *SelectOptions
func (*SelectOptions) SetOffset ¶
func (Opt *SelectOptions) SetOffset(Offset *int) *SelectOptions
func (*SelectOptions) SetPrefix ¶ added in v0.0.12
func (Opt *SelectOptions) SetPrefix(prefix *string) *SelectOptions
func (*SelectOptions) SetValue ¶ added in v0.0.12
func (Opt *SelectOptions) SetValue(value *string) *SelectOptions
type Store ¶
func NewStoreBDB ¶
func (*Store) CreateOrUpdateInvite ¶ added in v0.1.1
func (Store) CreateUser ¶ added in v0.1.1
func (*Store) DeleteInvite ¶ added in v0.1.1
func (*Store) InviteToUser ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.