Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Shortcut Registry for build-in shortcut connections. Shortcut *shortcut // Concurency Estimate concurrency required. Concurrency = 1000 )
Functions ¶
func InitShortcut ¶
func InitShortcut() *shortcut
Types ¶
type MockConn ¶
func NewMockConn ¶
func NewMockConn(scn *ShortcutConn, idx int, id int32) *MockConn
type MockEnd ¶
func (*MockEnd) CloseWithReason ¶
type QueueAddr ¶
type QueueAddr struct {
// contains filtered or unexported fields
}
func NewQueueAddr ¶
type ShortcutConn ¶
type ShortcutConn struct {
Conns []*MockConn
Client interface{}
Address string
OnValidate func(*MockConn)
// contains filtered or unexported fields
}
func NewShortcutConn ¶
func NewShortcutConn(addr string, n int) *ShortcutConn
func (*ShortcutConn) Close ¶
func (cn *ShortcutConn) Close(idxes ...int)
func (*ShortcutConn) Validate ¶
func (cn *ShortcutConn) Validate(idxes ...int) *ShortcutConn
Click to show internal directories.
Click to hide internal directories.