session

package
v0.0.0-...-16d0631 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept

func Accept(ini PreState, rolename string, id int, conn transport.Transport) error

func Connect

func Connect(ini PreState, rolename string, id int, conn transport.Transport) error

func NewConn

func NewConn(roles []ParamRole) (map[string][]transport.Channel, error)

func RoleRange

func RoleRange(id, nw int)

Types

type Endpoint

type Endpoint struct {
	Id       int
	NumRoles int

	// guards Conn
	ConnMu sync.RWMutex
	Conn   map[string][]transport.Channel
	// contains filtered or unexported fields
}

func NewEndpoint

func NewEndpoint(roleId, numRoles int, conn map[string][]transport.Channel) *Endpoint

func (*Endpoint) CheckConnection

func (e *Endpoint) CheckConnection()

CheckConnection ensures connections initiated (by Accept) in Endpoint e are fully established.

type LinearResource

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

func (*LinearResource) Use

func (res *LinearResource) Use()

type ParamRole

type ParamRole struct {
	Name  string
	Param int
}

type PreState

type PreState interface {
	Ept() *Endpoint
}

Jump to

Keyboard shortcuts

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