Documentation
¶
Index ¶
- type Affiliation
- type CreateInput
- type Handlers
- type Public
- type Service
- type Store
- func (s *Store) AddAffiliation(ctx context.Context, affiliationParam Affiliation) (Affiliation, error)
- func (s *Store) DeleteAffiliation(ctx context.Context, affiliationParam Affiliation) error
- func (s *Store) GetAffiliation(ctx context.Context, affiliationParam Affiliation) (Affiliation, error)
- func (s *Store) GetAffiliations(ctx context.Context) ([]Affiliation, error)
- func (s *Store) GetAffiliationsMinimal(ctx context.Context) ([]Affiliation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Affiliation ¶
type CreateInput ¶
CreateInput is a new affiliation; an image is required.
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers serves /affiliations.
func NewHandlers ¶
type Public ¶
type Public struct {
ID int `json:"id"`
Name string `json:"name"`
Website string `json:"website,omitempty"`
ImageURL string `json:"imageUrl,omitempty"`
}
Public is an affiliation as the API returns it.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the affiliation business logic.
func NewService ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores the dependencies
func NewAffiliationRepo ¶
NewAffiliationRepo stores our dependency
func (*Store) AddAffiliation ¶
func (s *Store) AddAffiliation(ctx context.Context, affiliationParam Affiliation) (Affiliation, error)
func (*Store) DeleteAffiliation ¶
func (s *Store) DeleteAffiliation(ctx context.Context, affiliationParam Affiliation) error
func (*Store) GetAffiliation ¶
func (s *Store) GetAffiliation(ctx context.Context, affiliationParam Affiliation) (Affiliation, error)
func (*Store) GetAffiliations ¶
func (s *Store) GetAffiliations(ctx context.Context) ([]Affiliation, error)
func (*Store) GetAffiliationsMinimal ¶
func (s *Store) GetAffiliationsMinimal(ctx context.Context) ([]Affiliation, error)
Click to show internal directories.
Click to hide internal directories.