server

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: ISC Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCWrapper

type RPCWrapper struct {
	Message    rpc.Message
	Payload    interface{}
	Identifier string

	// CloseAfterWritingErr is set to a non nil error if the server session
	// should be closed after writing this message.
	CloseAfterWritingErr error
}

RPCWrapper is a wrapped RPC Message for internal use. This is required because RPC messages consist of 2 discrete pieces.

type ZKS

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

func NewServer

func NewServer(cfg *settings.Settings) (*ZKS, error)

func (*ZKS) BoundAddrs

func (z *ZKS) BoundAddrs() []net.Addr

BoundAddrs returns the addresses the server is bound to listen to.

func (*ZKS) Run

func (z *ZKS) Run(ctx context.Context) error

Directories

Path Synopsis
internal
tagstack
tagstack is a package that manages concurrent safe tag stacks.
tagstack is a package that manages concurrent safe tag stacks.

Jump to

Keyboard shortcuts

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