grpchandler

package
v0.0.0-...-6f9a9ad Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_app_river_management_handlers_grpc_service_proto protoreflect.FileDescriptor

Functions

func RegisterServiceServer

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

Types

type GetModuleRequest

type GetModuleRequest struct {
	PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*GetModuleRequest) Descriptor deprecated

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

Deprecated: Use GetModuleRequest.ProtoReflect.Descriptor instead.

func (*GetModuleRequest) GetPhoneNumber

func (x *GetModuleRequest) GetPhoneNumber() string

func (*GetModuleRequest) ProtoMessage

func (*GetModuleRequest) ProtoMessage()

func (*GetModuleRequest) ProtoReflect

func (x *GetModuleRequest) ProtoReflect() protoreflect.Message

func (*GetModuleRequest) Reset

func (x *GetModuleRequest) Reset()

func (*GetModuleRequest) String

func (x *GetModuleRequest) String() string

type Module

type Module struct {
	ModuleID     string `protobuf:"bytes,1,opt,name=moduleID,proto3" json:"moduleID,omitempty"`
	PhoneNumber  string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
	Alias        string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	RiverID      string `protobuf:"bytes,4,opt,name=riverID,proto3" json:"riverID,omitempty"`
	RiverName    string `protobuf:"bytes,5,opt,name=riverName,proto3" json:"riverName,omitempty"`
	UserID       string `protobuf:"bytes,6,opt,name=userID,proto3" json:"userID,omitempty"`
	CreationDate int64  `protobuf:"varint,7,opt,name=creationDate,proto3" json:"creationDate,omitempty"`
	UpdateDate   int64  `protobuf:"varint,8,opt,name=updateDate,proto3" json:"updateDate,omitempty"`
	Currentstate string `protobuf:"bytes,9,opt,name=currentstate,proto3" json:"currentstate,omitempty"`
	Serial       string `protobuf:"bytes,10,opt,name=serial,proto3" json:"serial,omitempty"`
	Location     *Point `protobuf:"bytes,11,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*Module) Descriptor deprecated

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

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetAlias

func (x *Module) GetAlias() string

func (*Module) GetCreationDate

func (x *Module) GetCreationDate() int64

func (*Module) GetCurrentstate

func (x *Module) GetCurrentstate() string

func (*Module) GetLocation

func (x *Module) GetLocation() *Point

func (*Module) GetModuleID

func (x *Module) GetModuleID() string

func (*Module) GetPhoneNumber

func (x *Module) GetPhoneNumber() string

func (*Module) GetRiverID

func (x *Module) GetRiverID() string

func (*Module) GetRiverName

func (x *Module) GetRiverName() string

func (*Module) GetSerial

func (x *Module) GetSerial() string

func (*Module) GetUpdateDate

func (x *Module) GetUpdateDate() int64

func (*Module) GetUserID

func (x *Module) GetUserID() string

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

func (x *Module) ProtoReflect() protoreflect.Message

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

type Point

type Point struct {
	Latitude  float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude float64 `protobuf:"fixed64,64,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// contains filtered or unexported fields
}

func (*Point) Descriptor deprecated

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

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetLatitude

func (x *Point) GetLatitude() float64

func (*Point) GetLongitude

func (x *Point) GetLongitude() float64

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

func (x *Point) ProtoReflect() protoreflect.Message

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

type ServiceClient

type ServiceClient interface {
	GetModuleByPhonenumber(ctx context.Context, in *GetModuleRequest, opts ...grpc.CallOption) (*Module, error)
	UpdateModuleStatus(ctx context.Context, in *UpdateModuleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ServiceClient is the client API for Service service.

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

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	GetModuleByPhonenumber(context.Context, *GetModuleRequest) (*Module, error)
	UpdateModuleStatus(context.Context, *UpdateModuleRequest) (*emptypb.Empty, error)
}

ServiceServer is the server API for Service service.

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) GetModuleByPhonenumber

func (*UnimplementedServiceServer) GetModuleByPhonenumber(context.Context, *GetModuleRequest) (*Module, error)

func (*UnimplementedServiceServer) UpdateModuleStatus

type UpdateModuleRequest

type UpdateModuleRequest struct {
	ModuleID string `protobuf:"bytes,1,opt,name=moduleID,proto3" json:"moduleID,omitempty"`
	Status   string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateModuleRequest) Descriptor deprecated

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

Deprecated: Use UpdateModuleRequest.ProtoReflect.Descriptor instead.

func (*UpdateModuleRequest) GetModuleID

func (x *UpdateModuleRequest) GetModuleID() string

func (*UpdateModuleRequest) GetStatus

func (x *UpdateModuleRequest) GetStatus() string

func (*UpdateModuleRequest) ProtoMessage

func (*UpdateModuleRequest) ProtoMessage()

func (*UpdateModuleRequest) ProtoReflect

func (x *UpdateModuleRequest) ProtoReflect() protoreflect.Message

func (*UpdateModuleRequest) Reset

func (x *UpdateModuleRequest) Reset()

func (*UpdateModuleRequest) String

func (x *UpdateModuleRequest) String() string

Jump to

Keyboard shortcuts

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