Documentation
¶
Index ¶
- Constants
- Variables
- func New(opts *Options) tcpip.LinkEndpointID
- type AwsStats
- type Buffy
- func (b *Buffy) DecodedBytes() ([]byte, error)
- func (b *Buffy) EncodedBytes() []byte
- func (b *Buffy) EncodedBytesString() string
- func (b *Buffy) Len() int
- func (b *Buffy) Offset() int
- func (b *Buffy) Read(p []byte) (n int, err error)
- func (b *Buffy) Replace(p []byte) (bool, error)
- func (b *Buffy) Reset()
- func (b *Buffy) String() string
- func (b *Buffy) Write(p []byte) (n int, err error)
- func (b *Buffy) WriteUnencoded(p []byte) (n int, err error)
- type FunctionTags
- type Options
- type TagBuffer
- type TagConfig
- type TagHarvester
- type TagLink
- func (t *TagLink) FlushReceive() (*string, error)
- func (t *TagLink) FlushTransmit() (*string, error)
- func (t *TagLink) LinkAddressLabel() string
- func (t *TagLink) Read(p []byte) (int, error)
- func (t *TagLink) ReceivePacketLen() int
- func (t *TagLink) RemoteLinkAddressLabel() string
- func (t *TagLink) RxTagIndex(i int) string
- func (t *TagLink) StartPolling()
- func (t *TagLink) String() string
- func (t *TagLink) TxTagIndex(i int) string
- func (t *TagLink) Write(p []byte) (int, error)
- type TagRing
- type TagRingType
- type TagStats
Constants ¶
View Source
const PollInterval = 500 * time.Millisecond
View Source
const TagRingNoOp = -1
Variables ¶
View Source
var BufConfig = []int{255, 255, 255, 255, 255, 255, 255, 255}
todo: define how this maps to multi-tags (?)
View Source
var ErrOverCapacity = errors.New("Buffy: over capacity")
View Source
var FullBuffers = errors.New("TagRing: Full Buffers")
Functions ¶
func New ¶
func New(opts *Options) tcpip.LinkEndpointID
New creates a new endpoint for transmitting data using AWS Lambda tags.
Types ¶
type Buffy ¶
type Buffy struct {
// contains filtered or unexported fields
}
func (*Buffy) DecodedBytes ¶
func (*Buffy) EncodedBytes ¶
func (*Buffy) EncodedBytesString ¶
type FunctionTags ¶
func (FunctionTags) String ¶
func (t FunctionTags) String() string
type Options ¶
type Options struct {
LocalArn string
RemoteArn string
LocalAddress tcpip.LinkAddress
RemoteAddress tcpip.LinkAddress
}
Options specify the details about the AWS service-based endpoint to be created.
type TagHarvester ¶
type TagHarvester struct {
// contains filtered or unexported fields
}
func NewTagHarvester ¶
func (*TagHarvester) Start ¶
func (th *TagHarvester) Start()
func (*TagHarvester) Stop ¶
func (th *TagHarvester) Stop()
type TagLink ¶
type TagLink struct {
// contains filtered or unexported fields
}
TagLink reads/writes L2 data to AWS service(s)
func NewTagLink ¶
func (*TagLink) FlushReceive ¶
func (*TagLink) FlushTransmit ¶
func (*TagLink) LinkAddressLabel ¶
func (*TagLink) ReceivePacketLen ¶
func (*TagLink) RemoteLinkAddressLabel ¶
func (*TagLink) RxTagIndex ¶
func (*TagLink) StartPolling ¶
func (t *TagLink) StartPolling()
func (*TagLink) TxTagIndex ¶
type TagRing ¶
type TagRing struct {
// contains filtered or unexported fields
}
func NewTagRing ¶
func NewTagRing(cap int, t TagRingType) *TagRing
type TagRingType ¶
type TagRingType uint8
const ( TransmitType TagRingType = 0 ReceiveType TagRingType = 1 )
Click to show internal directories.
Click to hide internal directories.