Documentation
¶
Index ¶
- type CrowdApp
- type CrowdAppStatus
- type Repo
- type Store
- func (s *Store) AddCrowdApp(ctx context.Context, c CrowdApp) (CrowdApp, error)
- func (s *Store) DeleteCrowdApp(ctx context.Context, c CrowdApp) error
- func (s *Store) EditCrowdApp(ctx context.Context, c CrowdApp) (CrowdApp, error)
- func (s *Store) GetCrowdApp(ctx context.Context, c CrowdApp) (CrowdApp, error)
- func (s *Store) GetCrowdApps(ctx context.Context, crowdAppStatus CrowdAppStatus) ([]CrowdApp, error)
- func (s *Store) VerifyCrowd(ctx context.Context, c CrowdApp) (CrowdApp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrowdApp ¶
type CrowdApp struct {
AppID int `db:"app_id" json:"appID"`
Name string `db:"name" json:"name"`
Username string `db:"username" json:"username"`
Description null.String `db:"description" json:"description,omitempty"`
Active bool `db:"active" json:"active"`
Password null.String `db:"password" json:"-"`
Salt null.String `db:"salt" json:"-"`
}
type CrowdAppStatus ¶
type CrowdAppStatus int
CrowdAppStatus indicates the state desired for a database get of crowd apps
const ( Any CrowdAppStatus = iota Inactive Active )
type Repo ¶
type Repo interface {
GetCrowdApp(context.Context, CrowdApp) (CrowdApp, error)
GetCrowdApps(context.Context, CrowdAppStatus) ([]CrowdApp, error)
VerifyCrowd(context.Context, CrowdApp) (CrowdApp, error)
AddCrowdApp(context.Context, CrowdApp) (CrowdApp, error)
EditCrowdApp(context.Context, CrowdApp) (CrowdApp, error)
DeleteCrowdApp(context.Context, CrowdApp) error
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores the dependencies
func (*Store) AddCrowdApp ¶
func (*Store) DeleteCrowdApp ¶
func (*Store) EditCrowdApp ¶
func (*Store) GetCrowdApp ¶
func (*Store) GetCrowdApps ¶
Click to show internal directories.
Click to hide internal directories.