server

package
v0.0.0-...-09e4489 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Profile(string) (io.ReadCloser, error)
	Peek() Stat
	Rejoin(string) error // circuit address to join to
	Suicide()
	IsDone() bool
	Scrub()
	X() circuit.X
}

func New

func New(kin *tissue.Kin) Server

type Stat

type Stat struct {
	Addr   string
	Joined time.Time
}

type XServer

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

XServer…

func (XServer) IsDone

func (s XServer) IsDone() bool

func (XServer) Peek

func (s XServer) Peek() Stat

func (XServer) Profile

func (x XServer) Profile(name string) (circuit.X, error)

func (XServer) Rejoin

func (x XServer) Rejoin(addr string) error

func (XServer) Scrub

func (s XServer) Scrub()

func (XServer) Suicide

func (s XServer) Suicide()

func (XServer) X

func (s XServer) X() circuit.X

type YServer

type YServer struct {
	X circuit.X
}

YServer…

func (YServer) IsDone

func (y YServer) IsDone() bool

func (YServer) Peek

func (y YServer) Peek() Stat

func (YServer) Profile

func (y YServer) Profile(name string) (rc io.ReadCloser, err error)

func (YServer) Rejoin

func (y YServer) Rejoin(addr string) error

func (YServer) Scrub

func (y YServer) Scrub()

func (YServer) Suicide

func (y YServer) Suicide()

Jump to

Keyboard shortcuts

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