remote

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2016 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "r4"

'r1' means revision 1

Variables

This section is empty.

Functions

func DumpAllQueue added in v0.24.0

func DumpAllQueue(wr io.Writer)

func DumpAllSession added in v0.24.0

func DumpAllSession(wr io.Writer)

func GetEventQueueSize

func GetEventQueueSize() int

func GetSessionTableSize

func GetSessionTableSize() int

func HandleRequestBuffer

func HandleRequestBuffer(reqbuf *bytes.Buffer, ctx *ConnContext) ([]event.Event, error)

func ReleaseEventQueue

func ReleaseEventQueue(q *ConnEventQueue)

Types

type ConnContext

type ConnContext struct {
	event.CryptoContext
	ConnId
	//IV            uint64
	EncryptMethod int
	Closing       bool
}

func NewConnContext

func NewConnContext() *ConnContext

type ConnEventQueue

type ConnEventQueue struct {
	event.EventQueue
	// contains filtered or unexported fields
}

func GetEventQueue

func GetEventQueue(cid ConnId, createIfMissing bool) *ConnEventQueue

type ConnId

type ConnId struct {
	User      string
	ConnIndex int
	RunId     int64
}

type EncryptConfig

type EncryptConfig struct {
	Method string
	Key    string
}

type ProxySession

type ProxySession struct {
	Id         SessionId
	CreateTime time.Time
	// contains filtered or unexported fields
}

type ServerConfig

type ServerConfig struct {
	Listen               string
	AdminListen          string
	MaxDynamicPort       int
	DynamicPortLifeCycle int
	CandidateDynamicPort []int
	Auth                 []string
	Encrypt              EncryptConfig
	Log                  []string
	TLS                  TLServerConfig
}
var ServerConf ServerConfig

func (*ServerConfig) VerifyUser

func (conf *ServerConfig) VerifyUser(user string) bool

type SessionId

type SessionId struct {
	ConnId
	Id uint32
}

type TLServerConfig added in v0.25.0

type TLServerConfig struct {
	Cert string
	Key  string
}

Directories

Path Synopsis
+build appengine
+build appengine

Jump to

Keyboard shortcuts

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