udsserver

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultBufferSize represents default buffer size
	DefaultBufferSize = 10480
)

Variables

This section is empty.

Functions

func ExtractMessage

func ExtractMessage(context string) (*model.Message, error)

ExtractMessage extracts message from clients

func StartServer

func StartServer(address string)

StartServer serves

Types

type UnixDomainSocket

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

UnixDomainSocket struct

func NewUnixDomainSocket

func NewUnixDomainSocket(filename string, buffersize ...int) *UnixDomainSocket

NewUnixDomainSocket create new socket

func (*UnixDomainSocket) SetContextHandler

func (us *UnixDomainSocket) SetContextHandler(f func(string) string)

SetContextHandler set handler for server

func (*UnixDomainSocket) StartServer

func (us *UnixDomainSocket) StartServer() error

StartServer start for server

Jump to

Keyboard shortcuts

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