service

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

OptionsSet of service options

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

type HealthServiceOptions struct {
	Conf *config.Config
}

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

type SeriesServiceOptions struct {
	Conf *config.Config
}

SeriesServiceOptions service dependency

type TotpService

type TotpService struct {
}

TotpService ref

func NewTotpService

func NewTotpService() *TotpService

NewTotpService instance

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL