session

package
v0.0.0-...-c201ef6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Host   *common.HostPortPB
	Log    logr.Logger
	Dialer dial.Dialer
	Ping   func(*Session) error
	// contains filtered or unexported fields
}

func NewSession

func NewSession(log logr.Logger, host *common.HostPortPB, dialer dial.Dialer, ping func(*Session) error) (*Session, error)

func (*Session) Close

func (s *Session) Close() error

func (*Session) Connect

func (s *Session) Connect(host *common.HostPortPB) error

func (*Session) GenerateCallID

func (s *Session) GenerateCallID() int32

func (*Session) Lock

func (s *Session) Lock()

func (*Session) Read

func (s *Session) Read(b []byte) (int, error)

func (*Session) Unlock

func (s *Session) Unlock()

func (*Session) Write

func (s *Session) Write(bytes []byte) (int, error)

Jump to

Keyboard shortcuts

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