server

package
v0.77.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Data           map[string]interface{}
	ServiceRequest interface{}
}

Request represents service request.

type Response

type Response struct {
	Status   string
	Error    string
	Response interface{}
	Data     map[string]interface{}
}

Response service response

type Server

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

Server represents a server

func New

func New(port string) *Server

New createss a new server for provided port.

func (*Server) Start

func (s *Server) Start() error

Start starts server

Jump to

Keyboard shortcuts

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