http

package
v0.0.0-...-8232506 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the default HTTP server for the kamaji-root application

func (*Server) Bootstrap

func (srv *Server) Bootstrap(conf *server.Config) error

Bootstrap initialises the http server without starting it

func (*Server) EnableJWTAuthentication

func (srv *Server) EnableJWTAuthentication() error

EnableJWTAuthentication enables JWT authentication on all routes added to the server after calling this function and persists the secret in the store

func (*Server) Start

func (srv *Server) Start() error

Start runs the default HTTP server

func (*Server) Stop

func (srv *Server) Stop() error

Stop stops the default HTTP server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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