Documentation ¶
Index ¶
- func Connect(conf *config.DatabaseConfig) (err error)
- type AccountStore
- func (as *AccountStore) CreateAccount(ctx context.Context, spaceID int32, account *model.Account) error
- func (as *AccountStore) GetAccount(ctx context.Context, spaceID int32, accountID int32) (*model.Account, error)
- func (as *AccountStore) ListAccounts(ctx context.Context, spaceID int32, skip int64, limit int64, ...) ([]*model.Account, error)
- func (as *AccountStore) UpdateAccount(ctx context.Context, spaceID int32, account *model.Account) error
- type SpaceStore
- func (ss *SpaceStore) CreateSpace(ctx context.Context, space *model.Space) error
- func (ss *SpaceStore) GetSpace(ctx context.Context, spaceID int32) (*model.Space, error)
- func (ss *SpaceStore) ListSpaces(ctx context.Context, skip int64, limit int64, filter *model.ListSpacesFilter) ([]*model.Space, error)
- func (ss *SpaceStore) UpdateSpace(ctx context.Context, space *model.Space) error
- type TemplateStore
- func (ts *TemplateStore) CreateTemplate(ctx context.Context, spaceID int32, template *model.Template) error
- func (ts *TemplateStore) DeleteTemplate(ctx context.Context, spaceID int32, templateID int64) error
- func (ts *TemplateStore) GetTemplate(ctx context.Context, spaceID int32, templateID int64) (*model.Template, error)
- func (ts *TemplateStore) ListTemplates(ctx context.Context, spaceID int32, skip int64, limit int64, ...) ([]*model.Template, error)
- func (ts *TemplateStore) UpdateTemplate(ctx context.Context, spaceID int32, template *model.Template) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(conf *config.DatabaseConfig) (err error)
Types ¶
type AccountStore ¶
type AccountStore struct {
// contains filtered or unexported fields
}
func NewAccountStore ¶
func NewAccountStore(conf *config.PostarAdminConfig) *AccountStore
func (*AccountStore) CreateAccount ¶
func (*AccountStore) GetAccount ¶
func (*AccountStore) ListAccounts ¶
func (*AccountStore) UpdateAccount ¶
type SpaceStore ¶
type SpaceStore struct {
// contains filtered or unexported fields
}
func NewSpaceStore ¶
func NewSpaceStore(conf *config.PostarAdminConfig) *SpaceStore
func (*SpaceStore) CreateSpace ¶
func (*SpaceStore) ListSpaces ¶
func (ss *SpaceStore) ListSpaces(ctx context.Context, skip int64, limit int64, filter *model.ListSpacesFilter) ([]*model.Space, error)
func (*SpaceStore) UpdateSpace ¶
type TemplateStore ¶
type TemplateStore struct {
// contains filtered or unexported fields
}
func NewTemplateStore ¶
func NewTemplateStore(conf *config.PostarAdminConfig) *TemplateStore
func (*TemplateStore) CreateTemplate ¶
func (*TemplateStore) DeleteTemplate ¶
func (*TemplateStore) GetTemplate ¶
func (*TemplateStore) ListTemplates ¶
func (*TemplateStore) UpdateTemplate ¶
Click to show internal directories.
Click to hide internal directories.