Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OptionsSet = wire.NewSet(wire.Struct(new(HealthServiceOptions), "*"), wire.Struct(new(SeriesServiceOptions), "*"))
OptionsSet of service options
View Source
var WireSet = wire.NewSet(NewHealthService, NewTotpService, NewSeriesService)
WireSet of service
Functions ¶
This section is empty.
Types ¶
type HealthService ¶
type HealthService struct {
// contains filtered or unexported fields
}
HealthService ref
func NewHealthService ¶
func NewHealthService(opts *HealthServiceOptions) *HealthService
NewHealthService instance
func (*HealthService) Check ¶
func (svc *HealthService) Check() payload.HealthEndpoint
Check health status
type HealthServiceOptions ¶
HealthServiceOptions service dependency
type SeriesService ¶
type SeriesService struct {
// contains filtered or unexported fields
}
SeriesService ref
func NewSeriesService ¶
func NewSeriesService(opts *SeriesServiceOptions) *SeriesService
NewSeriesService instance
func (*SeriesService) Detail ¶
func (svc *SeriesService) Detail(seriesID string) (payload.Series, error)
Detail of series
func (*SeriesService) Episodes ¶
func (svc *SeriesService) Episodes(seriesID string) ([]payload.SeriesEpisode, error)
Episodes of series
func (*SeriesService) Search ¶
func (svc *SeriesService) Search(query payload.SeriesSearchQuery) ([]payload.Series, error)
Search series
type SeriesServiceOptions ¶
SeriesServiceOptions service dependency
type TotpService ¶
type TotpService struct { }
TotpService ref
func (*TotpService) Generate ¶
func (svc *TotpService) Generate(secret string) (string, error)
Generate totp code by secret
func (*TotpService) Validate ¶
func (svc *TotpService) Validate(validation payload.TotpValidation) bool
Validate code by secret
Click to show internal directories.
Click to hide internal directories.