Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, 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
- func (*Owner_Territory) Descriptor() ([]byte, []int)deprecated
- func (x *Owner_Territory) GetCode() string
- func (x *Owner_Territory) GetSummary() string
- func (*Owner_Territory) ProtoMessage()
- func (x *Owner_Territory) ProtoReflect() protoreflect.Message
- func (x *Owner_Territory) Reset()
- func (x *Owner_Territory) String() string
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetAction() *RecordAction
- 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) GetVin() string
- func (x *Record) GetYear() int32
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type RecordAction
- func (*RecordAction) Descriptor() ([]byte, []int)deprecated
- func (x *RecordAction) GetCode() int32
- func (x *RecordAction) GetTitle() string
- func (*RecordAction) ProtoMessage()
- func (x *RecordAction) ProtoReflect() protoreflect.Message
- func (x *RecordAction) Reset()
- func (x *RecordAction) String() string
- type Response
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
- type VINRequest
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
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "operation.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindByNumber", Handler: _Service_FindByNumber_Handler, }, { MethodName: "FindByVIN", Handler: _Service_FindByVIN_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/operation/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶ added in v0.0.4
func RegisterServiceServer(s grpc.ServiceRegistrar, 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 string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,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() string
func (*Owner_Territory) GetSummary ¶ added in v0.4.4
func (x *Owner_Territory) GetSummary() string
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"` Vin string `protobuf:"bytes,16,opt,name=vin,proto3" json:"vin,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"` Action *RecordAction `protobuf:"bytes,17,opt,name=action,proto3" json:"action,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) GetAction ¶ added in v0.2.0
func (x *Record) GetAction() *RecordAction
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 RecordAction ¶ added in v0.2.0
type RecordAction struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*RecordAction) Descriptor
deprecated
added in
v0.2.0
func (*RecordAction) Descriptor() ([]byte, []int)
Deprecated: Use RecordAction.ProtoReflect.Descriptor instead.
func (*RecordAction) GetCode ¶ added in v0.2.0
func (x *RecordAction) GetCode() int32
func (*RecordAction) GetTitle ¶ added in v0.2.0
func (x *RecordAction) GetTitle() string
func (*RecordAction) ProtoMessage ¶ added in v0.2.0
func (*RecordAction) ProtoMessage()
func (*RecordAction) ProtoReflect ¶ added in v0.2.0
func (x *RecordAction) ProtoReflect() protoreflect.Message
func (*RecordAction) Reset ¶ added in v0.2.0
func (x *RecordAction) Reset()
func (*RecordAction) String ¶ added in v0.2.0
func (x *RecordAction) String() string
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) FindByVIN(ctx context.Context, in *VINRequest, 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) FindByVIN(context.Context, *VINRequest) (*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)
func (UnimplementedServiceServer) FindByVIN ¶ added in v0.4.7
func (UnimplementedServiceServer) FindByVIN(context.Context, *VINRequest) (*Response, error)
type UnsafeServiceServer ¶ added in v0.0.6
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type VINRequest ¶ added in v0.4.6
type VINRequest struct { Vin string `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"` // contains filtered or unexported fields }
func (*VINRequest) Descriptor
deprecated
added in
v0.4.6
func (*VINRequest) Descriptor() ([]byte, []int)
Deprecated: Use VINRequest.ProtoReflect.Descriptor instead.
func (*VINRequest) GetVin ¶ added in v0.4.6
func (x *VINRequest) GetVin() string
func (*VINRequest) ProtoMessage ¶ added in v0.4.6
func (*VINRequest) ProtoMessage()
func (*VINRequest) ProtoReflect ¶ added in v0.4.6
func (x *VINRequest) ProtoReflect() protoreflect.Message
func (*VINRequest) Reset ¶ added in v0.4.6
func (x *VINRequest) Reset()
func (*VINRequest) String ¶ added in v0.4.6
func (x *VINRequest) String() string