server

package
v1.0.0-beta.26 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package server is for all the SPV Wallet settings and HTTP server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MethodNotAllowed

func MethodNotAllowed(c *gin.Context)

MethodNotAllowed handles all 405 requests

func NotFound

func NotFound(c *gin.Context)

NotFound handles all 404 requests

Types

type Server

type Server struct {
	AppConfig *config.AppConfig
	Router    *gin.Engine
	Services  *config.AppServices
	WebServer *http.Server
}

Server is the configuration, services, and actual web server

func NewServer

func NewServer(appConfig *config.AppConfig, services *config.AppServices) *Server

NewServer will return a new server service

func (*Server) Handlers

func (s *Server) Handlers() *gin.Engine

Handlers will return handlers

func (*Server) Serve

func (s *Server) Serve()

Serve will load a server and start serving

func (*Server) Shutdown

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

Shutdown will stop the web server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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