beavertail

package
v0.0.0-...-135ad47 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatagramAck_AckType_name = map[int32]string{
	0: "OK",
	1: "BAD",
	2: "BUSY",
}
View Source
var DatagramAck_AckType_value = map[string]int32{
	"OK":   0,
	"BAD":  1,
	"BUSY": 2,
}

Functions

func RegisterPushDatagramServer

func RegisterPushDatagramServer(s *grpc.Server, srv PushDatagramServer)

Types

type DatagramAck

type DatagramAck struct {
	Acknowledgment       DatagramAck_AckType `protobuf:"varint,1,opt,name=acknowledgment,proto3,enum=beavertail.DatagramAck_AckType" json:"acknowledgment,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*DatagramAck) Descriptor

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

func (*DatagramAck) GetAcknowledgment

func (m *DatagramAck) GetAcknowledgment() DatagramAck_AckType

func (*DatagramAck) ProtoMessage

func (*DatagramAck) ProtoMessage()

func (*DatagramAck) Reset

func (m *DatagramAck) Reset()

func (*DatagramAck) String

func (m *DatagramAck) String() string

func (*DatagramAck) XXX_DiscardUnknown

func (m *DatagramAck) XXX_DiscardUnknown()

func (*DatagramAck) XXX_Marshal

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

func (*DatagramAck) XXX_Merge

func (m *DatagramAck) XXX_Merge(src proto.Message)

func (*DatagramAck) XXX_Size

func (m *DatagramAck) XXX_Size() int

func (*DatagramAck) XXX_Unmarshal

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

type DatagramAck_AckType

type DatagramAck_AckType int32
const (
	DatagramAck_OK   DatagramAck_AckType = 0
	DatagramAck_BAD  DatagramAck_AckType = 1
	DatagramAck_BUSY DatagramAck_AckType = 2
)

func (DatagramAck_AckType) EnumDescriptor

func (DatagramAck_AckType) EnumDescriptor() ([]byte, []int)

func (DatagramAck_AckType) String

func (x DatagramAck_AckType) String() string

type DatagramPush

type DatagramPush struct {
	BusID                    string   `protobuf:"bytes,1,opt,name=busID,proto3" json:"busID,omitempty"`
	PassengerCount           uint32   `protobuf:"varint,2,opt,name=passengerCount,proto3" json:"passengerCount,omitempty"`
	PassengerCountConfidence float64  `protobuf:"fixed64,3,opt,name=passengerCountConfidence,proto3" json:"passengerCountConfidence,omitempty"`
	Latitude                 float64  `protobuf:"fixed64,4,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude                float64  `protobuf:"fixed64,5,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Timestamp                int64    `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral     struct{} `json:"-"`
	XXX_unrecognized         []byte   `json:"-"`
	XXX_sizecache            int32    `json:"-"`
}

func (*DatagramPush) Descriptor

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

func (*DatagramPush) GetBusID

func (m *DatagramPush) GetBusID() string

func (*DatagramPush) GetLatitude

func (m *DatagramPush) GetLatitude() float64

func (*DatagramPush) GetLongitude

func (m *DatagramPush) GetLongitude() float64

func (*DatagramPush) GetPassengerCount

func (m *DatagramPush) GetPassengerCount() uint32

func (*DatagramPush) GetPassengerCountConfidence

func (m *DatagramPush) GetPassengerCountConfidence() float64

func (*DatagramPush) GetTimestamp

func (m *DatagramPush) GetTimestamp() int64

func (*DatagramPush) ProtoMessage

func (*DatagramPush) ProtoMessage()

func (*DatagramPush) Reset

func (m *DatagramPush) Reset()

func (*DatagramPush) String

func (m *DatagramPush) String() string

func (*DatagramPush) XXX_DiscardUnknown

func (m *DatagramPush) XXX_DiscardUnknown()

func (*DatagramPush) XXX_Marshal

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

func (*DatagramPush) XXX_Merge

func (m *DatagramPush) XXX_Merge(src proto.Message)

func (*DatagramPush) XXX_Size

func (m *DatagramPush) XXX_Size() int

func (*DatagramPush) XXX_Unmarshal

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

type PushDatagramClient

type PushDatagramClient interface {
	// In this service we expose an RPC called Push
	// it takes in an DatagramPush and returns an DatagramAck
	// dont ask me about the `{}` bc idk :(
	Push(ctx context.Context, in *DatagramPush, opts ...grpc.CallOption) (*DatagramAck, error)
}

PushDatagramClient is the client API for PushDatagram service.

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

type PushDatagramServer

type PushDatagramServer interface {
	// In this service we expose an RPC called Push
	// it takes in an DatagramPush and returns an DatagramAck
	// dont ask me about the `{}` bc idk :(
	Push(context.Context, *DatagramPush) (*DatagramAck, error)
}

PushDatagramServer is the server API for PushDatagram service.

type UnimplementedPushDatagramServer

type UnimplementedPushDatagramServer struct {
}

UnimplementedPushDatagramServer can be embedded to have forward compatible implementations.

func (*UnimplementedPushDatagramServer) Push

Jump to

Keyboard shortcuts

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