operation

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_proto_operation_operation_proto protoreflect.FileDescriptor
View Source
var File_proto_operation_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Owner.ProtoReflect.Descriptor instead.

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

func (*Owner) Reset

func (x *Owner) Reset()

func (*Owner) String

func (x *Owner) String() string

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) 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 (Owner_Entity) String

func (x Owner_Entity) String() string

func (Owner_Entity) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetAction added in v0.2.0

func (x *Record) GetAction() *RecordAction

func (*Record) GetBody

func (x *Record) GetBody() string

func (*Record) GetBrand

func (x *Record) GetBrand() string

func (*Record) GetCapacity

func (x *Record) GetCapacity() int32

func (*Record) GetColor

func (x *Record) GetColor() string

func (*Record) GetDate

func (x *Record) GetDate() *common.Date

func (*Record) GetDepartment

func (x *Record) GetDepartment() *Department

func (*Record) GetFuel

func (x *Record) GetFuel() string

func (*Record) GetKind

func (x *Record) GetKind() string

func (*Record) GetModel

func (x *Record) GetModel() string

func (*Record) GetNumber

func (x *Record) GetNumber() string

func (*Record) GetOwnWeight

func (x *Record) GetOwnWeight() int32

func (*Record) GetOwner

func (x *Record) GetOwner() *Owner

func (*Record) GetPurpose

func (x *Record) GetPurpose() string

func (*Record) GetTotalWeight

func (x *Record) GetTotalWeight() int32

func (*Record) GetVin added in v0.0.6

func (x *Record) GetVin() string

func (*Record) GetYear

func (x *Record) GetYear() int32

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetOperations added in v0.0.4

func (x *Response) GetOperations() []*Record

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

func (*Response) Reset added in v0.0.4

func (x *Response) Reset()

func (*Response) String added in v0.0.4

func (x *Response) String() string

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) FindByVIN added in v0.4.7

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

Jump to

Keyboard shortcuts

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