Versions in this module Expand all Collapse all v1 v1.1.1 Oct 30, 2021 v1.1.0 Oct 25, 2021 Changes in this version + func InitEvent(dis event.Dispatcher) queue.InitFunc + type Event struct + Action string + Key *Key + func (ev *Event) Name() string + func (ev *Event) Perform() error type Store + func NewStoreWithCrypto(db *sqlx.DB, crypto *crypto.AESGCM, mm ...database.Model) *Store v1.0.0 Apr 20, 2021 Changes in this version + func LoadRelations(loaders *database.Loaders, kk ...*Key) error + func Model(kk []*Key) func(int) database.Model + type Form struct + Config string + Key *Key + Keys *Store + Name string + PrivateKey string + func (f Form) Fields() map[string]string + func (f Form) Validate() error + type Key struct + Author *user.User + AuthorID int64 + Config string + CreatedAt time.Time + ID int64 + Key []byte + Name string + Namespace *namespace.Namespace + NamespaceID sql.NullInt64 + UpdatedAt time.Time + User *user.User + UserID int64 + func FromContext(ctx context.Context) (*Key, bool) + func (k *Key) Bind(mm ...database.Model) + func (k *Key) Endpoint(uri ...string) string + func (k *Key) IsZero() bool + func (k *Key) JSON(addr string) map[string]interface{} + func (k *Key) Primary() (string, int64) + func (k *Key) SetPrimary(id int64) + func (k *Key) Values() map[string]interface{} + type Store struct + Namespace *namespace.Namespace + User *user.User + func NewStore(db *sqlx.DB, mm ...database.Model) *Store + func NewStoreWithBlock(db *sqlx.DB, block *crypto.Block, mm ...database.Model) *Store + func (s *Store) All(opts ...query.Option) ([]*Key, error) + func (s *Store) Bind(mm ...database.Model) + func (s *Store) Chown(from, to int64) error + func (s *Store) Create(authorId int64, name, key, config string) (*Key, error) + func (s *Store) Delete(ids ...int64) error + func (s *Store) Get(opts ...query.Option) (*Key, error) + func (s *Store) Index(vals url.Values, opts ...query.Option) ([]*Key, database.Paginator, error) + func (s *Store) Load(key string, vals []interface{}, load database.LoaderFunc) error + func (s *Store) New() *Key + func (s *Store) Paginate(page int64, opts ...query.Option) (database.Paginator, error) + func (s *Store) Update(id int64, config string) error