server

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 19 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 ErrorResponse added in v0.3.44

type ErrorResponse struct {
	Code int
	Text string
}

type Health

type Health struct{}

func (*Health) Check

func (s *Health) Check(params *registerInfo) (*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 any)

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) any

func (*Server) SingleHandler added in v0.1.16

func (svr *Server) SingleHandler(jsonMap map[string]any) any

type Service

type Service struct{}

func (*Service) PreEvents added in v0.7.0

func (*Service) PreEvents() []string

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