webserver

package
v0.0.0-...-1dcbe0d Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Types

type Option

type Option struct {
	Verbose bool
	Host    string
	Port    int
	Service *webservice.Service
	Logger  zerolog.Logger
}

type Server

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

func New

func New(option Option) *Server

func (*Server) AuthWrapper

func (sv *Server) AuthWrapper() gin.HandlerFunc

func (*Server) BuildRouter

func (sv *Server) BuildRouter() *gin.Engine

func (*Server) CreateHorde

func (sv *Server) CreateHorde(c *gin.Context)

func (*Server) UserLogin

func (sv *Server) UserLogin(c *gin.Context)

func (*Server) UserRegister

func (sv *Server) UserRegister(c *gin.Context)

Jump to

Keyboard shortcuts

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