nc

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNetworkControllerServer

func RegisterNetworkControllerServer(s *grpc.Server, srv NetworkControllerServer)

Types

type DataRate

type DataRate struct {
	Modulation           string   `protobuf:"bytes,1,opt,name=modulation" json:"modulation,omitempty"`
	BandWidth            uint32   `protobuf:"varint,2,opt,name=bandWidth" json:"bandWidth,omitempty"`
	SpreadFactor         uint32   `protobuf:"varint,3,opt,name=spreadFactor" json:"spreadFactor,omitempty"`
	Bitrate              uint32   `protobuf:"varint,4,opt,name=bitrate" json:"bitrate,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DataRate) Descriptor

func (*DataRate) Descriptor() ([]byte, []int)

func (*DataRate) GetBandWidth

func (m *DataRate) GetBandWidth() uint32

func (*DataRate) GetBitrate

func (m *DataRate) GetBitrate() uint32

func (*DataRate) GetModulation

func (m *DataRate) GetModulation() string

func (*DataRate) GetSpreadFactor

func (m *DataRate) GetSpreadFactor() uint32

func (*DataRate) ProtoMessage

func (*DataRate) ProtoMessage()

func (*DataRate) Reset

func (m *DataRate) Reset()

func (*DataRate) String

func (m *DataRate) String() string

func (*DataRate) XXX_DiscardUnknown

func (m *DataRate) XXX_DiscardUnknown()

func (*DataRate) XXX_Marshal

func (m *DataRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataRate) XXX_Merge

func (dst *DataRate) XXX_Merge(src proto.Message)

func (*DataRate) XXX_Size

func (m *DataRate) XXX_Size() int

func (*DataRate) XXX_Unmarshal

func (m *DataRate) XXX_Unmarshal(b []byte) error

type HandleDataUpMACCommandRequest

type HandleDataUpMACCommandRequest struct {
	// DevEUI of the node.
	DevEUI []byte `protobuf:"bytes,1,opt,name=devEUI,proto3" json:"devEUI,omitempty"`
	// Command identifier (specified by the LoRaWAN specs).
	Cid uint32 `protobuf:"varint,5,opt,name=cid" json:"cid,omitempty"`
	// MAC-command payload(s).
	Commands             [][]byte `protobuf:"bytes,6,rep,name=commands,proto3" json:"commands,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleDataUpMACCommandRequest) Descriptor

func (*HandleDataUpMACCommandRequest) Descriptor() ([]byte, []int)

func (*HandleDataUpMACCommandRequest) GetCid

func (*HandleDataUpMACCommandRequest) GetCommands

func (m *HandleDataUpMACCommandRequest) GetCommands() [][]byte

func (*HandleDataUpMACCommandRequest) GetDevEUI

func (m *HandleDataUpMACCommandRequest) GetDevEUI() []byte

func (*HandleDataUpMACCommandRequest) ProtoMessage

func (*HandleDataUpMACCommandRequest) ProtoMessage()

func (*HandleDataUpMACCommandRequest) Reset

func (m *HandleDataUpMACCommandRequest) Reset()

func (*HandleDataUpMACCommandRequest) String

func (*HandleDataUpMACCommandRequest) XXX_DiscardUnknown

func (m *HandleDataUpMACCommandRequest) XXX_DiscardUnknown()

func (*HandleDataUpMACCommandRequest) XXX_Marshal

func (m *HandleDataUpMACCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleDataUpMACCommandRequest) XXX_Merge

func (dst *HandleDataUpMACCommandRequest) XXX_Merge(src proto.Message)

func (*HandleDataUpMACCommandRequest) XXX_Size

func (m *HandleDataUpMACCommandRequest) XXX_Size() int

func (*HandleDataUpMACCommandRequest) XXX_Unmarshal

func (m *HandleDataUpMACCommandRequest) XXX_Unmarshal(b []byte) error

type HandleDataUpMACCommandResponse

type HandleDataUpMACCommandResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleDataUpMACCommandResponse) Descriptor

func (*HandleDataUpMACCommandResponse) Descriptor() ([]byte, []int)

func (*HandleDataUpMACCommandResponse) ProtoMessage

func (*HandleDataUpMACCommandResponse) ProtoMessage()

func (*HandleDataUpMACCommandResponse) Reset

func (m *HandleDataUpMACCommandResponse) Reset()

func (*HandleDataUpMACCommandResponse) String

func (*HandleDataUpMACCommandResponse) XXX_DiscardUnknown

func (m *HandleDataUpMACCommandResponse) XXX_DiscardUnknown()

func (*HandleDataUpMACCommandResponse) XXX_Marshal

func (m *HandleDataUpMACCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleDataUpMACCommandResponse) XXX_Merge

func (dst *HandleDataUpMACCommandResponse) XXX_Merge(src proto.Message)

func (*HandleDataUpMACCommandResponse) XXX_Size

func (m *HandleDataUpMACCommandResponse) XXX_Size() int

func (*HandleDataUpMACCommandResponse) XXX_Unmarshal

func (m *HandleDataUpMACCommandResponse) XXX_Unmarshal(b []byte) error

type HandleErrorRequest

type HandleErrorRequest struct {
	DevEUI               []byte   `protobuf:"bytes,1,opt,name=devEUI,proto3" json:"devEUI,omitempty"`
	Error                string   `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleErrorRequest) Descriptor

func (*HandleErrorRequest) Descriptor() ([]byte, []int)

func (*HandleErrorRequest) GetDevEUI

func (m *HandleErrorRequest) GetDevEUI() []byte

func (*HandleErrorRequest) GetError

func (m *HandleErrorRequest) GetError() string

func (*HandleErrorRequest) ProtoMessage

func (*HandleErrorRequest) ProtoMessage()

func (*HandleErrorRequest) Reset

func (m *HandleErrorRequest) Reset()

func (*HandleErrorRequest) String

func (m *HandleErrorRequest) String() string

func (*HandleErrorRequest) XXX_DiscardUnknown

func (m *HandleErrorRequest) XXX_DiscardUnknown()

func (*HandleErrorRequest) XXX_Marshal

func (m *HandleErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleErrorRequest) XXX_Merge

func (dst *HandleErrorRequest) XXX_Merge(src proto.Message)

func (*HandleErrorRequest) XXX_Size

func (m *HandleErrorRequest) XXX_Size() int

func (*HandleErrorRequest) XXX_Unmarshal

func (m *HandleErrorRequest) XXX_Unmarshal(b []byte) error

type HandleErrorResponse

type HandleErrorResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleErrorResponse) Descriptor

func (*HandleErrorResponse) Descriptor() ([]byte, []int)

func (*HandleErrorResponse) ProtoMessage

func (*HandleErrorResponse) ProtoMessage()

func (*HandleErrorResponse) Reset

func (m *HandleErrorResponse) Reset()

func (*HandleErrorResponse) String

func (m *HandleErrorResponse) String() string

func (*HandleErrorResponse) XXX_DiscardUnknown

func (m *HandleErrorResponse) XXX_DiscardUnknown()

func (*HandleErrorResponse) XXX_Marshal

func (m *HandleErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleErrorResponse) XXX_Merge

func (dst *HandleErrorResponse) XXX_Merge(src proto.Message)

func (*HandleErrorResponse) XXX_Size

func (m *HandleErrorResponse) XXX_Size() int

func (*HandleErrorResponse) XXX_Unmarshal

func (m *HandleErrorResponse) XXX_Unmarshal(b []byte) error

type HandleRXInfoRequest

type HandleRXInfoRequest struct {
	DevEUI               []byte    `protobuf:"bytes,1,opt,name=devEUI,proto3" json:"devEUI,omitempty"`
	TxInfo               *TXInfo   `protobuf:"bytes,3,opt,name=txInfo" json:"txInfo,omitempty"`
	RxInfo               []*RXInfo `protobuf:"bytes,4,rep,name=rxInfo" json:"rxInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*HandleRXInfoRequest) Descriptor

func (*HandleRXInfoRequest) Descriptor() ([]byte, []int)

func (*HandleRXInfoRequest) GetDevEUI

func (m *HandleRXInfoRequest) GetDevEUI() []byte

func (*HandleRXInfoRequest) GetRxInfo

func (m *HandleRXInfoRequest) GetRxInfo() []*RXInfo

func (*HandleRXInfoRequest) GetTxInfo

func (m *HandleRXInfoRequest) GetTxInfo() *TXInfo

func (*HandleRXInfoRequest) ProtoMessage

func (*HandleRXInfoRequest) ProtoMessage()

func (*HandleRXInfoRequest) Reset

func (m *HandleRXInfoRequest) Reset()

func (*HandleRXInfoRequest) String

func (m *HandleRXInfoRequest) String() string

func (*HandleRXInfoRequest) XXX_DiscardUnknown

func (m *HandleRXInfoRequest) XXX_DiscardUnknown()

func (*HandleRXInfoRequest) XXX_Marshal

func (m *HandleRXInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleRXInfoRequest) XXX_Merge

func (dst *HandleRXInfoRequest) XXX_Merge(src proto.Message)

func (*HandleRXInfoRequest) XXX_Size

func (m *HandleRXInfoRequest) XXX_Size() int

func (*HandleRXInfoRequest) XXX_Unmarshal

func (m *HandleRXInfoRequest) XXX_Unmarshal(b []byte) error

type HandleRXInfoResponse

type HandleRXInfoResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleRXInfoResponse) Descriptor

func (*HandleRXInfoResponse) Descriptor() ([]byte, []int)

func (*HandleRXInfoResponse) ProtoMessage

func (*HandleRXInfoResponse) ProtoMessage()

func (*HandleRXInfoResponse) Reset

func (m *HandleRXInfoResponse) Reset()

func (*HandleRXInfoResponse) String

func (m *HandleRXInfoResponse) String() string

func (*HandleRXInfoResponse) XXX_DiscardUnknown

func (m *HandleRXInfoResponse) XXX_DiscardUnknown()

func (*HandleRXInfoResponse) XXX_Marshal

func (m *HandleRXInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleRXInfoResponse) XXX_Merge

func (dst *HandleRXInfoResponse) XXX_Merge(src proto.Message)

func (*HandleRXInfoResponse) XXX_Size

func (m *HandleRXInfoResponse) XXX_Size() int

func (*HandleRXInfoResponse) XXX_Unmarshal

func (m *HandleRXInfoResponse) XXX_Unmarshal(b []byte) error

type NetworkControllerClient

type NetworkControllerClient interface {
	// HandleRXInfo publishes rx related meta-data.
	HandleRXInfo(ctx context.Context, in *HandleRXInfoRequest, opts ...grpc.CallOption) (*HandleRXInfoResponse, error)
	// HandleDataUpMACCommand publishes a mac-command received by an end-device.
	// This method will only be called in case the mac-command request was
	// enqueued throught the API or when the CID is >= 0x80 (proprietary
	// mac-command range).
	HandleDataUpMACCommand(ctx context.Context, in *HandleDataUpMACCommandRequest, opts ...grpc.CallOption) (*HandleDataUpMACCommandResponse, error)
}

NetworkControllerClient is the client API for NetworkController service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNetworkControllerClient

func NewNetworkControllerClient(cc *grpc.ClientConn) NetworkControllerClient

type NetworkControllerServer

type NetworkControllerServer interface {
	// HandleRXInfo publishes rx related meta-data.
	HandleRXInfo(context.Context, *HandleRXInfoRequest) (*HandleRXInfoResponse, error)
	// HandleDataUpMACCommand publishes a mac-command received by an end-device.
	// This method will only be called in case the mac-command request was
	// enqueued throught the API or when the CID is >= 0x80 (proprietary
	// mac-command range).
	HandleDataUpMACCommand(context.Context, *HandleDataUpMACCommandRequest) (*HandleDataUpMACCommandResponse, error)
}

type RXInfo

type RXInfo struct {
	Mac                  []byte   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	Time                 string   `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"`
	Rssi                 int32    `protobuf:"varint,3,opt,name=rssi" json:"rssi,omitempty"`
	LoRaSNR              float64  `protobuf:"fixed64,4,opt,name=loRaSNR" json:"loRaSNR,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RXInfo) Descriptor

func (*RXInfo) Descriptor() ([]byte, []int)

func (*RXInfo) GetLoRaSNR

func (m *RXInfo) GetLoRaSNR() float64

func (*RXInfo) GetMac

func (m *RXInfo) GetMac() []byte

func (*RXInfo) GetRssi

func (m *RXInfo) GetRssi() int32

func (*RXInfo) GetTime

func (m *RXInfo) GetTime() string

func (*RXInfo) ProtoMessage

func (*RXInfo) ProtoMessage()

func (*RXInfo) Reset

func (m *RXInfo) Reset()

func (*RXInfo) String

func (m *RXInfo) String() string

func (*RXInfo) XXX_DiscardUnknown

func (m *RXInfo) XXX_DiscardUnknown()

func (*RXInfo) XXX_Marshal

func (m *RXInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RXInfo) XXX_Merge

func (dst *RXInfo) XXX_Merge(src proto.Message)

func (*RXInfo) XXX_Size

func (m *RXInfo) XXX_Size() int

func (*RXInfo) XXX_Unmarshal

func (m *RXInfo) XXX_Unmarshal(b []byte) error

type TXInfo

type TXInfo struct {
	Frequency            int64     `protobuf:"varint,1,opt,name=frequency" json:"frequency,omitempty"`
	DataRate             *DataRate `protobuf:"bytes,2,opt,name=dataRate" json:"dataRate,omitempty"`
	Adr                  bool      `protobuf:"varint,3,opt,name=adr" json:"adr,omitempty"`
	CodeRate             string    `protobuf:"bytes,4,opt,name=codeRate" json:"codeRate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*TXInfo) Descriptor

func (*TXInfo) Descriptor() ([]byte, []int)

func (*TXInfo) GetAdr

func (m *TXInfo) GetAdr() bool

func (*TXInfo) GetCodeRate

func (m *TXInfo) GetCodeRate() string

func (*TXInfo) GetDataRate

func (m *TXInfo) GetDataRate() *DataRate

func (*TXInfo) GetFrequency

func (m *TXInfo) GetFrequency() int64

func (*TXInfo) ProtoMessage

func (*TXInfo) ProtoMessage()

func (*TXInfo) Reset

func (m *TXInfo) Reset()

func (*TXInfo) String

func (m *TXInfo) String() string

func (*TXInfo) XXX_DiscardUnknown

func (m *TXInfo) XXX_DiscardUnknown()

func (*TXInfo) XXX_Marshal

func (m *TXInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TXInfo) XXX_Merge

func (dst *TXInfo) XXX_Merge(src proto.Message)

func (*TXInfo) XXX_Size

func (m *TXInfo) XXX_Size() int

func (*TXInfo) XXX_Unmarshal

func (m *TXInfo) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL