Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigureSocket(socket *net.TCPConn) error
- func SegToBytes(seg *capn.Segment) []byte
- type Capability
- func (c Capability) AsMsg() msgs.Capability
- func (c Capability) CanRead() bool
- func (c Capability) CanWrite() bool
- func (c Capability) DenyRead() Capability
- func (c Capability) DenyWrite() Capability
- func (a Capability) IsSubset(b Capability) bool
- func (c Capability) String() string
- func (a Capability) Union(b Capability) Capability
- type ChannelWaitGroup
- type ClientId
- type ClientIds
- type Cmp
- type Dialer
- type Positions
- type RMId
- type RMIds
- type SocketMsgHandler
- type SocketReader
- type SortUInt32
- type TCPDialer
- type TLSCapnpBeater
- type TLSCapnpHandshakerBase
- func (tchb *TLSCapnpHandshakerBase) CreateBeater(conn actor.EnqueueMsgActor, beatBytes []byte, drop bool)
- func (tchb *TLSCapnpHandshakerBase) InternalShutdown()
- func (tchb *TLSCapnpHandshakerBase) ReadExactlyOne() (*capn.Segment, error)
- func (tchb *TLSCapnpHandshakerBase) ReadOne() (*capn.Segment, error)
- func (tchb *TLSCapnpHandshakerBase) Reset()
- func (tchb *TLSCapnpHandshakerBase) Send(msg []byte) error
- func (tchb *TLSCapnpHandshakerBase) SendMessage(msg []byte) error
- type TxnId
- type TxnIds
- type VarUUId
- type VarUUIds
Constants ¶
Variables ¶
Functions ¶
Types ¶
type Capability ¶
type Capability uint8
const ( NoneCapability Capability = iota ReadOnlyCapability WriteOnlyCapability ReadWriteCapability )
func NewCapability ¶
func NewCapability(c msgs.Capability) Capability
func (Capability) AsMsg ¶
func (c Capability) AsMsg() msgs.Capability
func (Capability) CanRead ¶
func (c Capability) CanRead() bool
func (Capability) CanWrite ¶
func (c Capability) CanWrite() bool
func (Capability) DenyRead ¶
func (c Capability) DenyRead() Capability
func (Capability) DenyWrite ¶
func (c Capability) DenyWrite() Capability
func (Capability) IsSubset ¶
func (a Capability) IsSubset(b Capability) bool
returns b is a subset of a
func (Capability) String ¶
func (c Capability) String() string
func (Capability) Union ¶
func (a Capability) Union(b Capability) Capability
type ChannelWaitGroup ¶
type ChannelWaitGroup struct { WaitChan chan struct{} // contains filtered or unexported fields }
func NewChannelWaitGroup ¶
func NewChannelWaitGroup() *ChannelWaitGroup
func (*ChannelWaitGroup) Add ¶
func (cmg *ChannelWaitGroup) Add(delta uint64)
func (*ChannelWaitGroup) Done ¶
func (cmg *ChannelWaitGroup) Done()
func (*ChannelWaitGroup) Wait ¶
func (cmg *ChannelWaitGroup) Wait()
func (*ChannelWaitGroup) WaitUntilEither ¶
func (cmg *ChannelWaitGroup) WaitUntilEither(other <-chan struct{})
type ClientId ¶
type Dialer ¶
type Positions ¶
type SocketReader ¶
type SocketReader struct { SocketMsgHandler // contains filtered or unexported fields }
func NewSocketReader ¶
func NewSocketReader(conn actor.EnqueueFuncActor, smh SocketMsgHandler) *SocketReader
func (*SocketReader) Start ¶
func (sr *SocketReader) Start()
func (*SocketReader) Stop ¶
func (sr *SocketReader) Stop()
type SortUInt32 ¶
type SortUInt32 []uint32
func (SortUInt32) Len ¶
func (nums SortUInt32) Len() int
func (SortUInt32) Less ¶
func (nums SortUInt32) Less(i, j int) bool
func (SortUInt32) Sort ¶
func (nums SortUInt32) Sort()
func (SortUInt32) Swap ¶
func (nums SortUInt32) Swap(i, j int)
type TCPDialer ¶
type TCPDialer struct {
// contains filtered or unexported fields
}
func NewTCPDialer ¶
type TLSCapnpBeater ¶
type TLSCapnpBeater struct { *TLSCapnpHandshakerBase // contains filtered or unexported fields }
func NewTLSCapnpBeater ¶
func NewTLSCapnpBeater(tchb *TLSCapnpHandshakerBase, conn actor.EnqueueMsgActor, beatBytes []byte, drop bool) *TLSCapnpBeater
func (*TLSCapnpBeater) Exec ¶
func (b *TLSCapnpBeater) Exec() (bool, error)
func (*TLSCapnpBeater) SendMessage ¶
func (b *TLSCapnpBeater) SendMessage(msg []byte) error
func (*TLSCapnpBeater) Start ¶
func (b *TLSCapnpBeater) Start()
func (*TLSCapnpBeater) Stop ¶
func (b *TLSCapnpBeater) Stop()
type TLSCapnpHandshakerBase ¶
type TLSCapnpHandshakerBase struct { Dialer // contains filtered or unexported fields }
func NewTLSCapnpHandshakerBase ¶
func NewTLSCapnpHandshakerBase(dialer Dialer) *TLSCapnpHandshakerBase
func (*TLSCapnpHandshakerBase) CreateBeater ¶
func (tchb *TLSCapnpHandshakerBase) CreateBeater(conn actor.EnqueueMsgActor, beatBytes []byte, drop bool)
func (*TLSCapnpHandshakerBase) InternalShutdown ¶
func (tchb *TLSCapnpHandshakerBase) InternalShutdown()
func (*TLSCapnpHandshakerBase) ReadExactlyOne ¶
func (tchb *TLSCapnpHandshakerBase) ReadExactlyOne() (*capn.Segment, error)
this exists for handshake so that we don't accidentally read bits of the TLS handshake and break that!
func (*TLSCapnpHandshakerBase) ReadOne ¶
func (tchb *TLSCapnpHandshakerBase) ReadOne() (*capn.Segment, error)
func (*TLSCapnpHandshakerBase) Reset ¶
func (tchb *TLSCapnpHandshakerBase) Reset()
func (*TLSCapnpHandshakerBase) Send ¶
func (tchb *TLSCapnpHandshakerBase) Send(msg []byte) error
func (*TLSCapnpHandshakerBase) SendMessage ¶
func (tchb *TLSCapnpHandshakerBase) SendMessage(msg []byte) error
type TxnId ¶
type VarUUId ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.