server

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 4 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 {
	*rux.Router

	// Host server host. eg: localhost, 127.0.0.1
	Host string
	Port int
	// contains filtered or unexported fields
}

Server struct

func New

func New() *Server

New server instance

func NewEchoServer

func NewEchoServer() *Server

NewEchoServer instance

func (*Server) Start

func (s *Server) Start(addr string)

Start server with addr

func (*Server) String

func (s *Server) String() string

String get string

Jump to

Keyboard shortcuts

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