SCmesh: github.com/SlugCam/SCmesh/packet/header Index | Files

package header

import "github.com/SlugCam/SCmesh/packet/header"

Package header is a generated protocol buffer package.

It is generated from these files:

header.proto

It has these top-level messages:

Header
FloodingHeader
FileHeader
DataHeader
DSRHeader

Index

Package Files

header.pb.go

Variables

var DataHeader_Type_name = map[int32]string{
    0:  "MESSAGE",
    1:  "FILE",
    2:  "ACK",
}
var DataHeader_Type_value = map[string]int32{
    "MESSAGE": 0,
    "FILE":    1,
    "ACK":     2,
}

type DSRHeader Uses

type DSRHeader struct {
    RouteRequest *DSRHeader_RouteRequest `protobuf:"bytes,1,opt,name=route_request" json:"route_request,omitempty"`
    RouteReply   *DSRHeader_RouteReply   `protobuf:"bytes,2,opt,name=route_reply" json:"route_reply,omitempty"`
    // should also be repeated
    NodeUnreachableError *DSRHeader_NodeUnreachableError `protobuf:"bytes,3,opt,name=node_unreachable_error" json:"node_unreachable_error,omitempty"`
    AckRequest           *DSRHeader_AckRequest           `protobuf:"bytes,4,opt,name=ack_request" json:"ack_request,omitempty"`
    Ack                  *DSRHeader_Ack                  `protobuf:"bytes,5,opt,name=ack" json:"ack,omitempty"`
    SourceRoute          *DSRHeader_SourceRoute          `protobuf:"bytes,6,opt,name=source_route" json:"source_route,omitempty"`
    XXX_unrecognized     []byte                          `json:"-"`
}

func (*DSRHeader) GetAck Uses

func (m *DSRHeader) GetAck() *DSRHeader_Ack

func (*DSRHeader) GetAckRequest Uses

func (m *DSRHeader) GetAckRequest() *DSRHeader_AckRequest

func (*DSRHeader) GetNodeUnreachableError Uses

func (m *DSRHeader) GetNodeUnreachableError() *DSRHeader_NodeUnreachableError

func (*DSRHeader) GetRouteReply Uses

func (m *DSRHeader) GetRouteReply() *DSRHeader_RouteReply

func (*DSRHeader) GetRouteRequest Uses

func (m *DSRHeader) GetRouteRequest() *DSRHeader_RouteRequest

func (*DSRHeader) GetSourceRoute Uses

func (m *DSRHeader) GetSourceRoute() *DSRHeader_SourceRoute

func (*DSRHeader) ProtoMessage Uses

func (*DSRHeader) ProtoMessage()

func (*DSRHeader) Reset Uses

func (m *DSRHeader) Reset()

func (*DSRHeader) String Uses

func (m *DSRHeader) String() string

type DSRHeader_Ack Uses

type DSRHeader_Ack struct {
    Identification   *uint32 `protobuf:"varint,1,req,name=identification" json:"identification,omitempty"`
    Source           *uint32 `protobuf:"varint,2,req,name=source" json:"source,omitempty"`
    Destination      *uint32 `protobuf:"varint,3,req,name=destination" json:"destination,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*DSRHeader_Ack) GetDestination Uses

func (m *DSRHeader_Ack) GetDestination() uint32

func (*DSRHeader_Ack) GetIdentification Uses

func (m *DSRHeader_Ack) GetIdentification() uint32

func (*DSRHeader_Ack) GetSource Uses

func (m *DSRHeader_Ack) GetSource() uint32

func (*DSRHeader_Ack) ProtoMessage Uses

func (*DSRHeader_Ack) ProtoMessage()

func (*DSRHeader_Ack) Reset Uses

func (m *DSRHeader_Ack) Reset()

func (*DSRHeader_Ack) String Uses

func (m *DSRHeader_Ack) String() string

type DSRHeader_AckRequest Uses

type DSRHeader_AckRequest struct {
    Identification   *uint32 `protobuf:"varint,1,req,name=identification" json:"identification,omitempty"`
    Source           *uint32 `protobuf:"varint,2,req,name=source" json:"source,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*DSRHeader_AckRequest) GetIdentification Uses

func (m *DSRHeader_AckRequest) GetIdentification() uint32

func (*DSRHeader_AckRequest) GetSource Uses

func (m *DSRHeader_AckRequest) GetSource() uint32

func (*DSRHeader_AckRequest) ProtoMessage Uses

func (*DSRHeader_AckRequest) ProtoMessage()

func (*DSRHeader_AckRequest) Reset Uses

func (m *DSRHeader_AckRequest) Reset()

func (*DSRHeader_AckRequest) String Uses

func (m *DSRHeader_AckRequest) String() string

type DSRHeader_Node Uses

type DSRHeader_Node struct {
    Address          *uint32 `protobuf:"varint,1,req,name=address" json:"address,omitempty"`
    Cost             *uint32 `protobuf:"varint,2,req,name=cost" json:"cost,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*DSRHeader_Node) GetAddress Uses

func (m *DSRHeader_Node) GetAddress() uint32

func (*DSRHeader_Node) GetCost Uses

func (m *DSRHeader_Node) GetCost() uint32

func (*DSRHeader_Node) ProtoMessage Uses

func (*DSRHeader_Node) ProtoMessage()

func (*DSRHeader_Node) Reset Uses

func (m *DSRHeader_Node) Reset()

func (*DSRHeader_Node) String Uses

func (m *DSRHeader_Node) String() string

type DSRHeader_NodeUnreachableError Uses

type DSRHeader_NodeUnreachableError struct {
    Salvage                *uint32 `protobuf:"varint,1,req,name=salvage" json:"salvage,omitempty"`
    Source                 *uint32 `protobuf:"varint,2,req,name=source" json:"source,omitempty"`
    Destination            *uint32 `protobuf:"varint,3,req,name=destination" json:"destination,omitempty"`
    UnreachableNodeAddress *uint32 `protobuf:"varint,4,req,name=unreachable_node_address" json:"unreachable_node_address,omitempty"`
    XXX_unrecognized       []byte  `json:"-"`
}

Did not implement other errors because we do not need

func (*DSRHeader_NodeUnreachableError) GetDestination Uses

func (m *DSRHeader_NodeUnreachableError) GetDestination() uint32

func (*DSRHeader_NodeUnreachableError) GetSalvage Uses

func (m *DSRHeader_NodeUnreachableError) GetSalvage() uint32

func (*DSRHeader_NodeUnreachableError) GetSource Uses

func (m *DSRHeader_NodeUnreachableError) GetSource() uint32

func (*DSRHeader_NodeUnreachableError) GetUnreachableNodeAddress Uses

func (m *DSRHeader_NodeUnreachableError) GetUnreachableNodeAddress() uint32

func (*DSRHeader_NodeUnreachableError) ProtoMessage Uses

func (*DSRHeader_NodeUnreachableError) ProtoMessage()

func (*DSRHeader_NodeUnreachableError) Reset Uses

func (m *DSRHeader_NodeUnreachableError) Reset()

func (*DSRHeader_NodeUnreachableError) String Uses

func (m *DSRHeader_NodeUnreachableError) String() string

type DSRHeader_RouteReply Uses

type DSRHeader_RouteReply struct {
    Addresses        []*DSRHeader_Node `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"`
    XXX_unrecognized []byte            `json:"-"`
}

Source will be set to the node originating the reply Destination will be the node who originated the request

func (*DSRHeader_RouteReply) GetAddresses Uses

func (m *DSRHeader_RouteReply) GetAddresses() []*DSRHeader_Node

func (*DSRHeader_RouteReply) ProtoMessage Uses

func (*DSRHeader_RouteReply) ProtoMessage()

func (*DSRHeader_RouteReply) Reset Uses

func (m *DSRHeader_RouteReply) Reset()

func (*DSRHeader_RouteReply) String Uses

func (m *DSRHeader_RouteReply) String() string

type DSRHeader_RouteRequest Uses

type DSRHeader_RouteRequest struct {
    Id               *uint32           `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
    Target           *uint32           `protobuf:"varint,2,req,name=target" json:"target,omitempty"`
    Addresses        []*DSRHeader_Node `protobuf:"bytes,3,rep,name=addresses" json:"addresses,omitempty"`
    XXX_unrecognized []byte            `json:"-"`
}

If route request sent, receiver must be broadcast and source must be originating node, TTL can be used

func (*DSRHeader_RouteRequest) GetAddresses Uses

func (m *DSRHeader_RouteRequest) GetAddresses() []*DSRHeader_Node

func (*DSRHeader_RouteRequest) GetId Uses

func (m *DSRHeader_RouteRequest) GetId() uint32

func (*DSRHeader_RouteRequest) GetTarget Uses

func (m *DSRHeader_RouteRequest) GetTarget() uint32

func (*DSRHeader_RouteRequest) ProtoMessage Uses

func (*DSRHeader_RouteRequest) ProtoMessage()

func (*DSRHeader_RouteRequest) Reset Uses

func (m *DSRHeader_RouteRequest) Reset()

func (*DSRHeader_RouteRequest) String Uses

func (m *DSRHeader_RouteRequest) String() string

type DSRHeader_SourceRoute Uses

type DSRHeader_SourceRoute struct {
    Salvage          *uint32  `protobuf:"varint,1,req,name=salvage" json:"salvage,omitempty"`
    SegsLeft         *uint32  `protobuf:"varint,2,req,name=segs_left" json:"segs_left,omitempty"`
    Addresses        []uint32 `protobuf:"varint,3,rep,packed,name=addresses" json:"addresses,omitempty"`
    XXX_unrecognized []byte   `json:"-"`
}

func (*DSRHeader_SourceRoute) GetAddresses Uses

func (m *DSRHeader_SourceRoute) GetAddresses() []uint32

func (*DSRHeader_SourceRoute) GetSalvage Uses

func (m *DSRHeader_SourceRoute) GetSalvage() uint32

func (*DSRHeader_SourceRoute) GetSegsLeft Uses

func (m *DSRHeader_SourceRoute) GetSegsLeft() uint32

func (*DSRHeader_SourceRoute) ProtoMessage Uses

func (*DSRHeader_SourceRoute) ProtoMessage()

func (*DSRHeader_SourceRoute) Reset Uses

func (m *DSRHeader_SourceRoute) Reset()

func (*DSRHeader_SourceRoute) String Uses

func (m *DSRHeader_SourceRoute) String() string

type DataHeader Uses

type DataHeader struct {
    Destinations     []uint32         `protobuf:"varint,2,rep,packed,name=destinations" json:"destinations,omitempty"`
    Type             *DataHeader_Type `protobuf:"varint,3,req,name=type,enum=header.DataHeader_Type" json:"type,omitempty"`
    FileHeader       *FileHeader      `protobuf:"bytes,4,opt,name=file_header" json:"file_header,omitempty"`
    XXX_unrecognized []byte           `json:"-"`
}

func (*DataHeader) GetDestinations Uses

func (m *DataHeader) GetDestinations() []uint32

func (*DataHeader) GetFileHeader Uses

func (m *DataHeader) GetFileHeader() *FileHeader

func (*DataHeader) GetType Uses

func (m *DataHeader) GetType() DataHeader_Type

func (*DataHeader) ProtoMessage Uses

func (*DataHeader) ProtoMessage()

func (*DataHeader) Reset Uses

func (m *DataHeader) Reset()

func (*DataHeader) String Uses

func (m *DataHeader) String() string

type DataHeader_Type Uses

type DataHeader_Type int32
const (
    DataHeader_MESSAGE DataHeader_Type = 0
    DataHeader_FILE    DataHeader_Type = 1
    DataHeader_ACK     DataHeader_Type = 2
)

func (DataHeader_Type) Enum Uses

func (x DataHeader_Type) Enum() *DataHeader_Type

func (DataHeader_Type) String Uses

func (x DataHeader_Type) String() string

func (*DataHeader_Type) UnmarshalJSON Uses

func (x *DataHeader_Type) UnmarshalJSON(data []byte) error

type FileHeader Uses

type FileHeader struct {
    FileId           *int64  `protobuf:"varint,1,req,name=file_id" json:"file_id,omitempty"`
    FileSize         *int64  `protobuf:"varint,2,req,name=file_size" json:"file_size,omitempty"`
    Type             *string `protobuf:"bytes,3,req,name=type" json:"type,omitempty"`
    Timestamp        *int64  `protobuf:"varint,4,req,name=timestamp" json:"timestamp,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*FileHeader) GetFileId Uses

func (m *FileHeader) GetFileId() int64

func (*FileHeader) GetFileSize Uses

func (m *FileHeader) GetFileSize() int64

func (*FileHeader) GetTimestamp Uses

func (m *FileHeader) GetTimestamp() int64

func (*FileHeader) GetType Uses

func (m *FileHeader) GetType() string

func (*FileHeader) ProtoMessage Uses

func (*FileHeader) ProtoMessage()

func (*FileHeader) Reset Uses

func (m *FileHeader) Reset()

func (*FileHeader) String Uses

func (m *FileHeader) String() string

type FloodingHeader Uses

type FloodingHeader struct {
    PacketId         *uint32 `protobuf:"varint,2,req,name=packet_id" json:"packet_id,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*FloodingHeader) GetPacketId Uses

func (m *FloodingHeader) GetPacketId() uint32

func (*FloodingHeader) ProtoMessage Uses

func (*FloodingHeader) ProtoMessage()

func (*FloodingHeader) Reset Uses

func (m *FloodingHeader) Reset()

func (*FloodingHeader) String Uses

func (m *FloodingHeader) String() string
type Header struct {
    Source           *uint32         `protobuf:"varint,1,req,name=source" json:"source,omitempty"`
    Destination      *uint32         `protobuf:"varint,7,opt,name=destination" json:"destination,omitempty"`
    Ttl              *uint32         `protobuf:"varint,2,opt,name=ttl" json:"ttl,omitempty"`
    Priority         *uint32         `protobuf:"varint,3,opt,name=priority" json:"priority,omitempty"`
    DsrHeader        *DSRHeader      `protobuf:"bytes,4,opt,name=dsr_header" json:"dsr_header,omitempty"`
    FloodingHeader   *FloodingHeader `protobuf:"bytes,5,opt,name=flooding_header" json:"flooding_header,omitempty"`
    DataHeader       *DataHeader     `protobuf:"bytes,6,opt,name=data_header" json:"data_header,omitempty"`
    XXX_unrecognized []byte          `json:"-"`
}

func (*Header) GetDataHeader Uses

func (m *Header) GetDataHeader() *DataHeader

func (*Header) GetDestination Uses

func (m *Header) GetDestination() uint32

func (*Header) GetDsrHeader Uses

func (m *Header) GetDsrHeader() *DSRHeader

func (*Header) GetFloodingHeader Uses

func (m *Header) GetFloodingHeader() *FloodingHeader

func (*Header) GetPriority Uses

func (m *Header) GetPriority() uint32

func (*Header) GetSource Uses

func (m *Header) GetSource() uint32

func (*Header) GetTtl Uses

func (m *Header) GetTtl() uint32

func (*Header) ProtoMessage Uses

func (*Header) ProtoMessage()

func (*Header) Reset Uses

func (m *Header) Reset()

func (*Header) String Uses

func (m *Header) String() string

Package header imports 2 packages (graph) and is imported by 8 packages. Updated 2016-07-22. Refresh now. Tools for package owners.