httpserver

package
v0.0.0-...-10d5746 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const AuthorizationHeader = "Authorization"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticateHTTPRequest

type AuthenticateHTTPRequest struct {
	Token string `json:"token" binding:"required"`
}

type Config

type Config struct {
	Host   string `default:"0.0.0.0"`
	Port   string `default:"5000"`
	Logger bool   `default:"true"`
}

type HttpServer

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

func New

func New(config Config, service *domain.Service, authenticationService *authentication.AuthenticationService, eventsManager events.EventsManager) *HttpServer

func (*HttpServer) Shutdown

func (s *HttpServer) Shutdown(ctx context.Context) error

func (*HttpServer) Start

func (s *HttpServer) Start() (returnErr error)

type LoginHTTPRequest

type LoginHTTPRequest struct {
	Ticket string `json:"ticket" binding:"required"`
}

Jump to

Keyboard shortcuts

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