Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService interface { CreateAccount(ctx context.Context, spaceID int32, account *model.Account) (*model.Account, error) UpdateAccount(ctx context.Context, spaceID int32, account *model.Account) (*model.Account, error) GetAccount(ctx context.Context, spaceID int32, accountID int32, withPassword bool) (*model.Account, error) ListAccounts(ctx context.Context, spaceID int32, pageSize int32, pageToken string, filter *model.ListAccountsFilter) ([]*model.Account, string, error) }
func NewAccountService ¶
func NewAccountService(conf *config.PostarAdminConfig, accountStore AccountStore) AccountService
type AccountStore ¶
type AccountStore interface { CreateAccount(ctx context.Context, spaceID int32, account *model.Account) error UpdateAccount(ctx context.Context, spaceID int32, account *model.Account) error GetAccount(ctx context.Context, spaceID int32, accountID int32) (*model.Account, error) ListAccounts(ctx context.Context, spaceID int32, skip int64, limit int64, filter *model.ListAccountsFilter) ([]*model.Account, error) }
type SpaceService ¶
type SpaceService interface { CreateSpace(ctx context.Context, space *model.Space) (*model.Space, error) UpdateSpace(ctx context.Context, space *model.Space) (*model.Space, error) GetSpace(ctx context.Context, spaceID int32, withToken bool) (*model.Space, error) ListSpaces(ctx context.Context, pageSize int32, pageToken string, filter *model.ListSpacesFilter) ([]*model.Space, string, error) }
func NewSpaceService ¶
func NewSpaceService(conf *config.PostarAdminConfig, spaceStore SpaceStore) SpaceService
type SpaceStore ¶
type SpaceStore interface { CreateSpace(ctx context.Context, space *model.Space) error UpdateSpace(ctx context.Context, space *model.Space) error GetSpace(ctx context.Context, spaceID int32) (*model.Space, error) ListSpaces(ctx context.Context, skip int64, limit int64, filter *model.ListSpacesFilter) ([]*model.Space, error) }
type TemplateService ¶
type TemplateService interface { CreateTemplate(ctx context.Context, spaceID int32, template *model.Template) (*model.Template, error) UpdateTemplate(ctx context.Context, spaceID int32, template *model.Template) (*model.Template, error) GetTemplate(ctx context.Context, spaceID int32, templateID int64) (*model.Template, error) ListTemplates(ctx context.Context, spaceID int32, pageSize int32, pageToken string, filter *model.ListTemplatesFilter) ([]*model.Template, string, error) DeleteTemplate(ctx context.Context, spaceID int32, templateID int64) error }
func NewTemplateService ¶
func NewTemplateService(conf *config.PostarAdminConfig, templateStore TemplateStore) TemplateService
type TemplateStore ¶
type TemplateStore interface { CreateTemplate(ctx context.Context, spaceID int32, template *model.Template) error UpdateTemplate(ctx context.Context, spaceID int32, template *model.Template) error GetTemplate(ctx context.Context, spaceID int32, templateID int64) (*model.Template, error) ListTemplates(ctx context.Context, spaceID int32, skip int64, limit int64, filter *model.ListTemplatesFilter) ([]*model.Template, error) DeleteTemplate(ctx context.Context, spaceID int32, templateID int64) error }
Click to show internal directories.
Click to hide internal directories.