Documentation ¶
Index ¶
- func RegisterController(v0 *server.V0, c *Controller)
- type Asset
- type Avg
- type Controller
- type Group
- type Repo
- func (r *Repo) GetGroupByID(ctx context.Context, id string) (*groupModel, error)
- func (r *Repo) GetGroups(ctx context.Context) ([]groupModel, error)
- func (r *Repo) GetStories(ctx context.Context) ([]storyModel, error)
- func (r *Repo) GetStoryByID(ctx context.Context, id string) (*storyModel, error)
- func (r *Repo) GetVersion(ctx context.Context) (string, error)
- func (r *Repo) InsertGroups(ctx context.Context, groups []groupModel) error
- func (r *Repo) InsertStories(ctx context.Context, stories []storyModel) error
- func (r *Repo) TruncateGroups(ctx context.Context) error
- func (r *Repo) TruncateStories(ctx context.Context) (err error)
- func (r Repo) UpdateAvg(ctx context.Context, version string, gms []groupModel, sms []storyModel) error
- func (r *Repo) UpsertVersion(ctx context.Context, resVersion string) error
- type Service
- func (s *Service) GetGroupByID(ctx context.Context, id string) (*Group, error)
- func (s *Service) GetGroups(ctx context.Context) ([]Group, error)
- func (s *Service) GetStories(ctx context.Context) ([]Story, error)
- func (s *Service) GetStoryByID(ctx context.Context, id string) (*Story, error)
- func (s *Service) GetVersion(ctx context.Context) (string, error)
- func (s *Service) Reset(ctx context.Context) error
- func (s *Service) UpdateAvg(ctx context.Context, version string, avg Avg) (err error)
- type Story
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterController ¶
func RegisterController(v0 *server.V0, c *Controller)
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(service *Service) *Controller
func (*Controller) GetGroupByID ¶
func (c *Controller) GetGroupByID(ctx *fiber.Ctx) error
func (*Controller) GetGroups ¶
func (c *Controller) GetGroups(ctx *fiber.Ctx) error
func (*Controller) GetStories ¶
func (c *Controller) GetStories(ctx *fiber.Ctx) error
func (*Controller) GetStoryByID ¶
func (c *Controller) GetStoryByID(ctx *fiber.Ctx) error
type Repo ¶ added in v0.10.0
func (*Repo) GetGroupByID ¶ added in v0.10.0
func (*Repo) GetStories ¶ added in v0.10.0
func (*Repo) GetStoryByID ¶ added in v0.10.0
func (*Repo) GetVersion ¶ added in v0.10.0
func (*Repo) InsertGroups ¶ added in v0.10.0
func (*Repo) InsertStories ¶ added in v0.10.0
func (*Repo) TruncateGroups ¶ added in v0.10.0
func (*Repo) TruncateStories ¶ added in v0.10.0
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetGroupByID ¶
func (*Service) GetStoryByID ¶
Click to show internal directories.
Click to hide internal directories.