Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
- type Department
- type NumberRequest
- type Owner
- type Owner_Entity
- func (Owner_Entity) Descriptor() protoreflect.EnumDescriptor
- func (x Owner_Entity) Enum() *Owner_Entity
- func (Owner_Entity) EnumDescriptor() ([]byte, []int)deprecated
- func (x Owner_Entity) Number() protoreflect.EnumNumber
- func (x Owner_Entity) String() string
- func (Owner_Entity) Type() protoreflect.EnumType
- type Owner_Territory
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetBody() string
- func (x *Record) GetBrand() string
- func (x *Record) GetCapacity() int32
- func (x *Record) GetColor() string
- func (x *Record) GetDate() *common.Date
- func (x *Record) GetDepartment() *Department
- func (x *Record) GetFuel() string
- func (x *Record) GetKind() string
- func (x *Record) GetModel() string
- func (x *Record) GetNumber() string
- func (x *Record) GetOwnWeight() int32
- func (x *Record) GetOwner() *Owner
- func (x *Record) GetPurpose() string
- func (x *Record) GetTotalWeight() int32
- func (x *Record) GetYear() int32
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type Response
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Owner_Entity_name = map[int32]string{ 0: "UNKNOWN", 1: "INDIVIDUAL", 2: "LEGAL", } Owner_Entity_value = map[string]int32{ "UNKNOWN": 0, "INDIVIDUAL": 1, "LEGAL": 2, } )
Enum value maps for Owner_Entity.
var File_proto_operation_operation_proto protoreflect.FileDescriptor
var File_proto_operation_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterServiceServer ¶ added in v0.0.4
func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
Types ¶
type Department ¶
type Department struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Department) Descriptor
deprecated
func (*Department) Descriptor() ([]byte, []int)
Deprecated: Use Department.ProtoReflect.Descriptor instead.
func (*Department) GetCode ¶
func (x *Department) GetCode() int32
func (*Department) GetName ¶
func (x *Department) GetName() string
func (*Department) ProtoMessage ¶
func (*Department) ProtoMessage()
func (*Department) ProtoReflect ¶
func (x *Department) ProtoReflect() protoreflect.Message
func (*Department) Reset ¶
func (x *Department) Reset()
func (*Department) String ¶
func (x *Department) String() string
type NumberRequest ¶ added in v0.0.4
type NumberRequest struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*NumberRequest) Descriptor
deprecated
added in
v0.0.4
func (*NumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use NumberRequest.ProtoReflect.Descriptor instead.
func (*NumberRequest) GetNumber ¶ added in v0.0.4
func (x *NumberRequest) GetNumber() string
func (*NumberRequest) ProtoMessage ¶ added in v0.0.4
func (*NumberRequest) ProtoMessage()
func (*NumberRequest) ProtoReflect ¶ added in v0.0.4
func (x *NumberRequest) ProtoReflect() protoreflect.Message
func (*NumberRequest) Reset ¶ added in v0.0.4
func (x *NumberRequest) Reset()
func (*NumberRequest) String ¶ added in v0.0.4
func (x *NumberRequest) String() string
type Owner ¶
type Owner struct { Entity Owner_Entity `protobuf:"varint,1,opt,name=entity,proto3,enum=operation.Owner_Entity" json:"entity,omitempty"` Registration *Owner_Territory `protobuf:"bytes,2,opt,name=registration,proto3" json:"registration,omitempty"` // contains filtered or unexported fields }
func (*Owner) Descriptor
deprecated
func (*Owner) GetEntity ¶
func (x *Owner) GetEntity() Owner_Entity
func (*Owner) GetRegistration ¶
func (x *Owner) GetRegistration() *Owner_Territory
func (*Owner) ProtoMessage ¶
func (*Owner) ProtoMessage()
func (*Owner) ProtoReflect ¶
func (x *Owner) ProtoReflect() protoreflect.Message
type Owner_Entity ¶
type Owner_Entity int32
const ( Owner_UNKNOWN Owner_Entity = 0 Owner_INDIVIDUAL Owner_Entity = 1 Owner_LEGAL Owner_Entity = 2 )
func (Owner_Entity) Descriptor ¶
func (Owner_Entity) Descriptor() protoreflect.EnumDescriptor
func (Owner_Entity) Enum ¶
func (x Owner_Entity) Enum() *Owner_Entity
func (Owner_Entity) EnumDescriptor
deprecated
func (Owner_Entity) EnumDescriptor() ([]byte, []int)
Deprecated: Use Owner_Entity.Descriptor instead.
func (Owner_Entity) Number ¶
func (x Owner_Entity) Number() protoreflect.EnumNumber
func (Owner_Entity) String ¶
func (x Owner_Entity) String() string
func (Owner_Entity) Type ¶
func (Owner_Entity) Type() protoreflect.EnumType
type Owner_Territory ¶
type Owner_Territory struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Owner_Territory) Descriptor
deprecated
func (*Owner_Territory) Descriptor() ([]byte, []int)
Deprecated: Use Owner_Territory.ProtoReflect.Descriptor instead.
func (*Owner_Territory) GetCode ¶
func (x *Owner_Territory) GetCode() int32
func (*Owner_Territory) ProtoMessage ¶
func (*Owner_Territory) ProtoMessage()
func (*Owner_Territory) ProtoReflect ¶
func (x *Owner_Territory) ProtoReflect() protoreflect.Message
func (*Owner_Territory) Reset ¶
func (x *Owner_Territory) Reset()
func (*Owner_Territory) String ¶
func (x *Owner_Territory) String() string
type Record ¶
type Record struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` Brand string `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"` Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` Year int32 `protobuf:"varint,4,opt,name=year,proto3" json:"year,omitempty"` Capacity int32 `protobuf:"varint,5,opt,name=capacity,proto3" json:"capacity,omitempty"` Color string `protobuf:"bytes,6,opt,name=color,proto3" json:"color,omitempty"` Fuel string `protobuf:"bytes,7,opt,name=fuel,proto3" json:"fuel,omitempty"` Kind string `protobuf:"bytes,8,opt,name=kind,proto3" json:"kind,omitempty"` Body string `protobuf:"bytes,9,opt,name=body,proto3" json:"body,omitempty"` Purpose string `protobuf:"bytes,10,opt,name=purpose,proto3" json:"purpose,omitempty"` OwnWeight int32 `protobuf:"varint,11,opt,name=own_weight,json=ownWeight,proto3" json:"own_weight,omitempty"` TotalWeight int32 `protobuf:"varint,12,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"` Date *common.Date `protobuf:"bytes,13,opt,name=date,proto3" json:"date,omitempty"` Department *Department `protobuf:"bytes,14,opt,name=department,proto3" json:"department,omitempty"` Owner *Owner `protobuf:"bytes,15,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) GetCapacity ¶
func (*Record) GetDepartment ¶
func (x *Record) GetDepartment() *Department
func (*Record) GetOwnWeight ¶
func (*Record) GetPurpose ¶
func (*Record) GetTotalWeight ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type Response ¶ added in v0.0.4
type Response struct { Operations []*Record `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
added in
v0.0.4
func (*Response) GetOperations ¶ added in v0.0.4
func (*Response) ProtoMessage ¶ added in v0.0.4
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶ added in v0.0.4
func (x *Response) ProtoReflect() protoreflect.Message
type ServiceClient ¶ added in v0.0.4
type ServiceClient interface {
FindByNumber(ctx context.Context, in *NumberRequest, opts ...grpc.CallOption) (*Response, error)
}
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceClient ¶ added in v0.0.4
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶ added in v0.0.4
type ServiceServer interface { FindByNumber(context.Context, *NumberRequest) (*Response, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶ added in v0.0.4
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedServiceServer) FindByNumber ¶ added in v0.0.4
func (*UnimplementedServiceServer) FindByNumber(context.Context, *NumberRequest) (*Response, error)