controller

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WireSet = wire.NewSet(wire.Struct(new(Options), "*"), New)

WireSet of controller

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller ref

func New

func New(opts *Options) *Controller

New controller

func (*Controller) Register

func (ctrl *Controller) Register()

Register all controller

type Options

type Options struct {
	Router        *gin.Engine
	HealthService *service.HealthService
	TotpService   *service.TotpService
	SeriesService *service.SeriesService
}

Options dependency

Jump to

Keyboard shortcuts

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