util

package
v0.0.0-...-04f754b Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(format string, a ...interface{}) error

func Format

func Format(format string, a ...interface{}) string

func Hash

func Hash(a string) string

Types

type RouteData

type RouteData struct {
	Verb         string
	Path         string
	Handler      gin.HandlerFunc
	RequiresAuth bool
}

type Server

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

func NewServer

func NewServer() *Server

func (*Server) Configure

func (server *Server) Configure(templateLocation string, routeData []RouteData) error

func (*Server) CreateAuth

func (server *Server) CreateAuth(c *gin.Context)

func (*Server) SetAuthRedirectPath

func (server *Server) SetAuthRedirectPath(path string)

func (*Server) SetAuthTimeout

func (server *Server) SetAuthTimeout(dur time.Duration)

func (*Server) SetTLSInfo

func (server *Server) SetTLSInfo(certFile, keyFile string)

func (*Server) Start

func (server *Server) Start(uri string) chan error

func (*Server) Stop

func (server *Server) Stop() error

func (*Server) VerifyAuth

func (server *Server) VerifyAuth(c *gin.Context) (bool, error)

Jump to

Keyboard shortcuts

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