server

package
v0.0.0-...-b9ea1a8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version specifies the active version
	Version = "latest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Ok         bool        `json:"ok"`
	Result     interface{} `json:"result,omitempty"`
	Message    string      `json:"message,omitempty"`
	StatusCode int         `json:"-"`
}

Response struct

type Server

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

Server struct holds all server related details

func NewServer

func NewServer(debug bool) *Server

NewServer returns a new pointer to Server struct with debug and new ServeMux.

func (*Server) RunServer

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

RunServer for starting the listener at given address.

Jump to

Keyboard shortcuts

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