web

package
v0.0.0-...-78c2119 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormError

type FormError struct {
	ID      string
	Message string
}

type Server

type Server struct {
	Router    *alanis.Router
	JWTSecret []byte
}

func NewServer

func NewServer() (Server, error)

func (*Server) GenerateToken

func (s *Server) GenerateToken(user auth2.AuthUser) (string, string, error)

func (*Server) GetAuthService

func (s *Server) GetAuthService(string) auth2.Authenticator

func (*Server) Listen

func (s *Server) Listen(addr string) error

func (*Server) Serve

func (s *Server) Serve(listener net.Listener) error

func (*Server) Static

func (s *Server) Static(route string, dir string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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