Documentation
¶
Index ¶
- Variables
- func ApiAccessBucket(tx *bolt.Tx) (*bolt.Bucket, error)
- func ApiClientIdsBucket(tx *bolt.Tx) (*bolt.Bucket, error)
- func ApiClientsBucket(tx *bolt.Tx) (*bolt.Bucket, error)
- func GenUUID() (string, error)
- func Load(bucket *bolt.Bucket, key string, record interface{}) error
- func LoadRaw(bucket *bolt.Bucket, key string) ([]byte, error)
- func Save(bucket *bolt.Bucket, key string, record interface{}) error
- type Account
Constants ¶
This section is empty.
Variables ¶
View Source
var RecordNotFound error = errors.New("record does not exist")
Functions ¶
Types ¶
type Account ¶
type Account struct { Id string `json:"id"` Token string `json:"access-token"` Datastore string `json:"datastore"` Permissions []string `json:"permissions"` }
func NewAccount ¶
func (*Account) AddPermissions ¶
func (*Account) DatastoreName ¶
func (*Account) HasPermission ¶
func (*Account) RemovePermissions ¶
func (*Account) SetDatastore ¶
func (*Account) SetPermissions ¶
Click to show internal directories.
Click to hide internal directories.