server

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BufferSize = 1024
)

Variables

This section is empty.

Functions

func RegisterServer

func RegisterServer(name string, s any)

Types

type Health

type Health struct {
}

func (*Health) Check

func (s *Health) Check(params *params) (*string, error)

type Http added in v0.1.15

type Http struct {
	Ip         string
	Port       string
	Server     Server
	BufferSize int
}

func NewHttpServer added in v0.1.15

func NewHttpServer(ip string, port string) *Http

func (*Http) Register added in v0.1.15

func (p *Http) Register(s interface{})

func (*Http) SetBuffer added in v0.1.15

func (p *Http) SetBuffer(bs int)

func (*Http) Start added in v0.1.15

func (p *Http) Start()

type Server added in v0.1.16

type Server struct {
	common.Server
}

func (*Server) Handler added in v0.1.16

func (svr *Server) Handler(b []byte) []byte

func (*Server) SingleHandler added in v0.1.16

func (svr *Server) SingleHandler(jsonMap map[string]interface{}) interface{}

type Service

type Service struct {
}

func (Service) Start

func (Service) Start(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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