server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPC

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

func (*IPC) Close

func (ins *IPC) Close() error

func (*IPC) Dial

func (ins *IPC) Dial() (conn net.Conn, err error)

type Option

type Option struct {
	Program     string
	ProgramArgs []string

	BufferSize int
}

func (*Option) Validate

func (o *Option) Validate() error

type Server

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

func New

func New(opt *Option) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Listen

func (s *Server) Listen(addr string) (err error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context, addr string) (err error)

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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