net

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort           = 6000
	DefaultListenAddress  = ":6000"
	DefaultConnectAddress = "localhost:6000"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) Checkout

func (c *Client) Checkout(name string) (params.Params, error)

func (*Client) CheckoutBatch added in v0.5.0

func (c *Client) CheckoutBatch(names ...string) (params.Set, error)

func (*Client) Return

func (c *Client) Return(name string, item ephemerald.Item) error

func (*Client) ReturnBatch added in v0.5.0

func (c *Client) ReturnBatch(ps params.Set) error

type ClientBuilder

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

func NewClientBuilder

func NewClientBuilder() *ClientBuilder

func (*ClientBuilder) Create

func (b *ClientBuilder) Create() (*Client, error)

func (*ClientBuilder) WithAddress

func (b *ClientBuilder) WithAddress(address string) *ClientBuilder

func (*ClientBuilder) WithPort

func (b *ClientBuilder) WithPort(port int) *ClientBuilder

type Server

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

func (*Server) Address

func (s *Server) Address() string

func (*Server) Close

func (s *Server) Close()

func (*Server) Port

func (s *Server) Port() int

func (*Server) Run

func (s *Server) Run()

func (*Server) ServerCloseNotify

func (s *Server) ServerCloseNotify() chan bool

type ServerBuilder

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

func NewServerBuilder

func NewServerBuilder() *ServerBuilder

func (*ServerBuilder) Create

func (sb *ServerBuilder) Create() (*Server, error)

func (*ServerBuilder) WithAddress

func (sb *ServerBuilder) WithAddress(address string) *ServerBuilder

func (*ServerBuilder) WithPoolSet

func (sb *ServerBuilder) WithPoolSet(pools ephemerald.PoolSet) *ServerBuilder

func (*ServerBuilder) WithPort

func (sb *ServerBuilder) WithPort(port int) *ServerBuilder

Jump to

Keyboard shortcuts

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