server

package
v0.0.0-...-927d48a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultServerPort ...
	DefaultServerPort = "80"
)

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP() string

GetLocalIP ...

Types

type ErrorResponse

type ErrorResponse struct {
	Type    string `json:"type"`
	Status  int    `json:"status"`
	Code    string `json:"code"`
	Message string `json:"message"`
	Detail  string `json:"detail"`
}

ErrorResponse ...

type Server

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

Server ...

func NewServer

func NewServer(portStr, inputAlphabet string) (*Server, error)

NewServer ...

func (*Server) Close

func (s *Server) Close()

Close ...

func (*Server) GetExitChannel

func (s *Server) GetExitChannel() chan int

GetExitChannel ...

func (*Server) GetPort

func (s *Server) GetPort() int

GetPort ...

func (*Server) Run

func (s *Server) Run() error

Run ...

Jump to

Keyboard shortcuts

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