server

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package server ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Server ...

func NewServer

func NewServer() *Server

NewServer ...

func (*Server) AddService

func (p *Server) AddService(
	name string,
	service *rpc.Service,
	data rpc.Map,
) *Server

AddService ...

func (*Server) BuildReplyCache

func (p *Server) BuildReplyCache() *Server

BuildReplyCache ...

func (*Server) Close

func (p *Server) Close() bool

Close ...

func (*Server) IsRunning

func (p *Server) IsRunning() bool

IsRunning ...

func (*Server) Listen

func (p *Server) Listen(
	network string,
	addr string,
	tlsConfig *tls.Config,
) *Server

Listen ...

func (*Server) ListenWithDebug

func (p *Server) ListenWithDebug(
	network string,
	addr string,
	tlsConfig *tls.Config,
) *Server

ListenWithDebug ...

func (*Server) OnReceiveStream

func (p *Server) OnReceiveStream(stream *rpc.Stream)

OnReceiveStream ...

func (*Server) Open

func (p *Server) Open() bool

Open ...

func (*Server) SetActionCache

func (p *Server) SetActionCache(actionCache rpc.ActionCache) *Server

SetActionCache ...

func (*Server) SetLogHub

func (p *Server) SetLogHub(logHub rpc.IStreamHub) *Server

SetLogHub ...

func (*Server) SetNumOfThreads

func (p *Server) SetNumOfThreads(numOfThreads int) *Server

SetNumOfThreads ...

func (*Server) SetThreadBufferSize

func (p *Server) SetThreadBufferSize(threadBufferSize uint32) *Server

SetThreadBufferSize ...

Jump to

Keyboard shortcuts

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