airdispatch-go: github.com/airdispatch/airdispatch-go/wire Index | Files

package wire

import "github.com/airdispatch/airdispatch-go/wire"

The wire package contains all of the Protocol Buffers source files and compiled go files. Additionally, it contains certain important constants for AirDispatch servers.

Index

Package Files

containers.pb.go data.pb.go server.pb.go wire.go

Constants

const (
    MessageDescriptionCode  = "MDE"
    MessageListCode         = "MLI"
    TransferMessageCode     = "XFM"
    TransferMessageListCode = "XFL"
    MailCode                = "MAI"
    DataCode                = "DAT"
    ErrorCode               = "ERR"
)

The constants represent the three-letter codes that denote each type of Airdispatch message. The names of each constant should make the message that they each represent self-apparent.

Variables

var Prefix []byte = []byte("AD")

func PrefixBytes Uses

func PrefixBytes(data []byte) []byte

func ReadBytes Uses

func ReadBytes(conn io.Reader) ([]byte, error)

type Container Uses

type Container struct {
    Header           *Header `protobuf:"bytes,1,req,name=header" json:"header,omitempty"`
    Data             []byte  `protobuf:"bytes,2,req,name=data" json:"data,omitempty"`
    Type             *string `protobuf:"bytes,3,req,name=type" json:"type,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*Container) GetData Uses

func (m *Container) GetData() []byte

func (*Container) GetHeader Uses

func (m *Container) GetHeader() *Header

func (*Container) GetType Uses

func (m *Container) GetType() string

func (*Container) ProtoMessage Uses

func (*Container) ProtoMessage()

func (*Container) Reset Uses

func (m *Container) Reset()

func (*Container) String Uses

func (m *Container) String() string

type Data Uses

type Data struct {
    Hash             []byte  `protobuf:"bytes,1,req,name=hash" json:"hash,omitempty"`
    Length           *uint64 `protobuf:"varint,2,req,name=length" json:"length,omitempty"`
    Key              []byte  `protobuf:"bytes,3,req,name=key" json:"key,omitempty"`
    Type             *string `protobuf:"bytes,4,req,name=type" json:"type,omitempty"`
    Name             *string `protobuf:"bytes,5,opt,name=name" json:"name,omitempty"`
    File             *string `protobuf:"bytes,6,opt,name=file" json:"file,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*Data) GetFile Uses

func (m *Data) GetFile() string

func (*Data) GetHash Uses

func (m *Data) GetHash() []byte

func (*Data) GetKey Uses

func (m *Data) GetKey() []byte

func (*Data) GetLength Uses

func (m *Data) GetLength() uint64

func (*Data) GetName Uses

func (m *Data) GetName() string

func (*Data) GetType Uses

func (m *Data) GetType() string

func (*Data) ProtoMessage Uses

func (*Data) ProtoMessage()

func (*Data) Reset Uses

func (m *Data) Reset()

func (*Data) String Uses

func (m *Data) String() string

type EncryptedHeader Uses

type EncryptedHeader struct {
    ToAddr           []byte `protobuf:"bytes,1,req,name=to_addr" json:"to_addr,omitempty"`
    Key              []byte `protobuf:"bytes,2,req,name=key" json:"key,omitempty"`
    EncFun           []byte `protobuf:"bytes,3,opt,name=enc_fun" json:"enc_fun,omitempty"`
    XXX_unrecognized []byte `json:"-"`
}

func (*EncryptedHeader) GetEncFun Uses

func (m *EncryptedHeader) GetEncFun() []byte

func (*EncryptedHeader) GetKey Uses

func (m *EncryptedHeader) GetKey() []byte

func (*EncryptedHeader) GetToAddr Uses

func (m *EncryptedHeader) GetToAddr() []byte

func (*EncryptedHeader) ProtoMessage Uses

func (*EncryptedHeader) ProtoMessage()

func (*EncryptedHeader) Reset Uses

func (m *EncryptedHeader) Reset()

func (*EncryptedHeader) String Uses

func (m *EncryptedHeader) String() string

type EncryptedMessage Uses

type EncryptedMessage struct {
    Data             []byte             `protobuf:"bytes,1,req,name=data" json:"data,omitempty"`
    Header           []*EncryptedHeader `protobuf:"bytes,2,rep,name=header" json:"header,omitempty"`
    XXX_unrecognized []byte             `json:"-"`
}

func (*EncryptedMessage) GetData Uses

func (m *EncryptedMessage) GetData() []byte

func (*EncryptedMessage) GetHeader Uses

func (m *EncryptedMessage) GetHeader() []*EncryptedHeader

func (*EncryptedMessage) ProtoMessage Uses

func (*EncryptedMessage) ProtoMessage()

func (*EncryptedMessage) Reset Uses

func (m *EncryptedMessage) Reset()

func (*EncryptedMessage) String Uses

func (m *EncryptedMessage) String() string

type Error Uses

type Error struct {
    Code             *uint32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"`
    Description      *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*Error) GetCode Uses

func (m *Error) GetCode() uint32

func (*Error) GetDescription Uses

func (m *Error) GetDescription() string

func (*Error) ProtoMessage Uses

func (*Error) ProtoMessage()

func (*Error) Reset Uses

func (m *Error) Reset()

func (*Error) String Uses

func (m *Error) String() string
type Header struct {
    FromAddr         []byte   `protobuf:"bytes,1,req,name=from_addr" json:"from_addr,omitempty"`
    ToAddr           [][]byte `protobuf:"bytes,2,rep,name=to_addr" json:"to_addr,omitempty"`
    Timestamp        *uint64  `protobuf:"varint,3,req,name=timestamp" json:"timestamp,omitempty"`
    Alias            *string  `protobuf:"bytes,4,opt,name=alias" json:"alias,omitempty"`
    EncryptionKey    []byte   `protobuf:"bytes,5,opt,name=encryption_key" json:"encryption_key,omitempty"`
    XXX_unrecognized []byte   `json:"-"`
}

func (*Header) GetAlias Uses

func (m *Header) GetAlias() string

func (*Header) GetEncryptionKey Uses

func (m *Header) GetEncryptionKey() []byte

func (*Header) GetFromAddr Uses

func (m *Header) GetFromAddr() []byte

func (*Header) GetTimestamp Uses

func (m *Header) GetTimestamp() uint64

func (*Header) GetToAddr Uses

func (m *Header) GetToAddr() [][]byte

func (*Header) ProtoMessage Uses

func (*Header) ProtoMessage()

func (*Header) Reset Uses

func (m *Header) Reset()

func (*Header) String Uses

func (m *Header) String() string

type Mail Uses

type Mail struct {
    Components       []*Mail_Component `protobuf:"bytes,1,rep,name=components" json:"components,omitempty"`
    Name             *string           `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
    XXX_unrecognized []byte            `json:"-"`
}

func (*Mail) GetComponents Uses

func (m *Mail) GetComponents() []*Mail_Component

func (*Mail) GetName Uses

func (m *Mail) GetName() string

func (*Mail) ProtoMessage Uses

func (*Mail) ProtoMessage()

func (*Mail) Reset Uses

func (m *Mail) Reset()

func (*Mail) String Uses

func (m *Mail) String() string

type Mail_Component Uses

type Mail_Component struct {
    Type             *string `protobuf:"bytes,1,req,name=type" json:"type,omitempty"`
    Data             []byte  `protobuf:"bytes,2,req,name=data" json:"data,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*Mail_Component) GetData Uses

func (m *Mail_Component) GetData() []byte

func (*Mail_Component) GetType Uses

func (m *Mail_Component) GetType() string

func (*Mail_Component) ProtoMessage Uses

func (*Mail_Component) ProtoMessage()

func (*Mail_Component) Reset Uses

func (m *Mail_Component) Reset()

func (*Mail_Component) String Uses

func (m *Mail_Component) String() string

type MessageDescription Uses

type MessageDescription struct {
    Location         *string `protobuf:"bytes,1,req,name=location" json:"location,omitempty"`
    Name             *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
    Nonce            *uint64 `protobuf:"varint,3,opt,name=nonce" json:"nonce,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*MessageDescription) GetLocation Uses

func (m *MessageDescription) GetLocation() string

func (*MessageDescription) GetName Uses

func (m *MessageDescription) GetName() string

func (*MessageDescription) GetNonce Uses

func (m *MessageDescription) GetNonce() uint64

func (*MessageDescription) ProtoMessage Uses

func (*MessageDescription) ProtoMessage()

func (*MessageDescription) Reset Uses

func (m *MessageDescription) Reset()

func (*MessageDescription) String Uses

func (m *MessageDescription) String() string

type MessageList Uses

type MessageList struct {
    Length           *uint64 `protobuf:"varint,1,req,name=length" json:"length,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*MessageList) GetLength Uses

func (m *MessageList) GetLength() uint64

func (*MessageList) ProtoMessage Uses

func (*MessageList) ProtoMessage()

func (*MessageList) Reset Uses

func (m *MessageList) Reset()

func (*MessageList) String Uses

func (m *MessageList) String() string

type Signature Uses

type Signature struct {
    R                []byte `protobuf:"bytes,1,req,name=r" json:"r,omitempty"`
    S                []byte `protobuf:"bytes,2,req,name=s" json:"s,omitempty"`
    SigningKey       []byte `protobuf:"bytes,3,opt,name=signing_key" json:"signing_key,omitempty"`
    XXX_unrecognized []byte `json:"-"`
}

func (*Signature) GetR Uses

func (m *Signature) GetR() []byte

func (*Signature) GetS Uses

func (m *Signature) GetS() []byte

func (*Signature) GetSigningKey Uses

func (m *Signature) GetSigningKey() []byte

func (*Signature) ProtoMessage Uses

func (*Signature) ProtoMessage()

func (*Signature) Reset Uses

func (m *Signature) Reset()

func (*Signature) String Uses

func (m *Signature) String() string

type SignedMessage Uses

type SignedMessage struct {
    Data             []byte       `protobuf:"bytes,1,req,name=data" json:"data,omitempty"`
    Signature        []*Signature `protobuf:"bytes,2,rep,name=signature" json:"signature,omitempty"`
    SigningFunc      []byte       `protobuf:"bytes,3,opt,name=signing_func" json:"signing_func,omitempty"`
    XXX_unrecognized []byte       `json:"-"`
}

func (*SignedMessage) GetData Uses

func (m *SignedMessage) GetData() []byte

func (*SignedMessage) GetSignature Uses

func (m *SignedMessage) GetSignature() []*Signature

func (*SignedMessage) GetSigningFunc Uses

func (m *SignedMessage) GetSigningFunc() []byte

func (*SignedMessage) ProtoMessage Uses

func (*SignedMessage) ProtoMessage()

func (*SignedMessage) Reset Uses

func (m *SignedMessage) Reset()

func (*SignedMessage) String Uses

func (m *SignedMessage) String() string

type TransferMessage Uses

type TransferMessage struct {
    Author           *string `protobuf:"bytes,1,req,name=author" json:"author,omitempty"`
    Name             *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
    Data             *bool   `protobuf:"varint,3,opt,name=data" json:"data,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*TransferMessage) GetAuthor Uses

func (m *TransferMessage) GetAuthor() string

func (*TransferMessage) GetData Uses

func (m *TransferMessage) GetData() bool

func (*TransferMessage) GetName Uses

func (m *TransferMessage) GetName() string

func (*TransferMessage) ProtoMessage Uses

func (*TransferMessage) ProtoMessage()

func (*TransferMessage) Reset Uses

func (m *TransferMessage) Reset()

func (*TransferMessage) String Uses

func (m *TransferMessage) String() string

type TransferMessageList Uses

type TransferMessageList struct {
    Author           *string `protobuf:"bytes,1,req,name=author" json:"author,omitempty"`
    LastUpdated      *uint64 `protobuf:"varint,2,req,name=last_updated" json:"last_updated,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*TransferMessageList) GetAuthor Uses

func (m *TransferMessageList) GetAuthor() string

func (*TransferMessageList) GetLastUpdated Uses

func (m *TransferMessageList) GetLastUpdated() uint64

func (*TransferMessageList) ProtoMessage Uses

func (*TransferMessageList) ProtoMessage()

func (*TransferMessageList) Reset Uses

func (m *TransferMessageList) Reset()

func (*TransferMessageList) String Uses

func (m *TransferMessageList) String() string

Package wire imports 7 packages (graph). Updated 2016-07-15. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).