wanted

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: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Vehicle_Status_name = map[int32]string{
		0: "STATUS_UNKNOWN",
		1: "STATUS_STOLEN",
		2: "STATUS_REMOVED",
	}
	Vehicle_Status_value = map[string]int32{
		"STATUS_UNKNOWN": 0,
		"STATUS_STOLEN":  1,
		"STATUS_REMOVED": 2,
	}
)

Enum value maps for Vehicle_Status.

View Source
var File_proto_wanted_wanted_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wanted.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Find",
			Handler:    _Service_Find_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/wanted/wanted.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

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type FindRequest

type FindRequest struct {
	Numbers []string `protobuf:"bytes,1,rep,name=numbers,proto3" json:"numbers,omitempty"`
	Vins    []string `protobuf:"bytes,2,rep,name=vins,proto3" json:"vins,omitempty"`
	// contains filtered or unexported fields
}

func (*FindRequest) Descriptor deprecated

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

Deprecated: Use FindRequest.ProtoReflect.Descriptor instead.

func (*FindRequest) GetNumbers added in v0.5.20

func (x *FindRequest) GetNumbers() []string

func (*FindRequest) GetVins added in v0.5.20

func (x *FindRequest) GetVins() []string

func (*FindRequest) ProtoMessage

func (*FindRequest) ProtoMessage()

func (*FindRequest) ProtoReflect

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

func (*FindRequest) Reset

func (x *FindRequest) Reset()

func (*FindRequest) String

func (x *FindRequest) String() string

type FindResponse

type FindResponse struct {
	Vehicles []*Vehicle `protobuf:"bytes,1,rep,name=vehicles,proto3" json:"vehicles,omitempty"`
	// contains filtered or unexported fields
}

func (*FindResponse) Descriptor deprecated

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

Deprecated: Use FindResponse.ProtoReflect.Descriptor instead.

func (*FindResponse) GetVehicles

func (x *FindResponse) GetVehicles() []*Vehicle

func (*FindResponse) ProtoMessage

func (*FindResponse) ProtoMessage()

func (*FindResponse) ProtoReflect

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

func (*FindResponse) Reset

func (x *FindResponse) Reset()

func (*FindResponse) String

func (x *FindResponse) String() string

type ServiceClient

type ServiceClient interface {
	Find(ctx context.Context, in *FindRequest, opts ...grpc.CallOption) (*FindResponse, 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

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	Find(context.Context, *FindRequest) (*FindResponse, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) Find

type UnsafeServiceServer

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 Vehicle

type Vehicle struct {
	Id            string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title         string         `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Brand         string         `protobuf:"bytes,3,opt,name=brand,proto3" json:"brand,omitempty"`
	Model         string         `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"`
	Color         string         `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"`
	Number        string         `protobuf:"bytes,6,opt,name=number,proto3" json:"number,omitempty"`
	BodyNumber    string         `protobuf:"bytes,7,opt,name=body_number,json=bodyNumber,proto3" json:"body_number,omitempty"`
	ChassisNumber string         `protobuf:"bytes,8,opt,name=chassis_number,json=chassisNumber,proto3" json:"chassis_number,omitempty"`
	EngineNumber  string         `protobuf:"bytes,9,opt,name=engine_number,json=engineNumber,proto3" json:"engine_number,omitempty"`
	Ovd           string         `protobuf:"bytes,10,opt,name=ovd,proto3" json:"ovd,omitempty"`
	Kind          string         `protobuf:"bytes,11,opt,name=kind,proto3" json:"kind,omitempty"`
	Status        Vehicle_Status `protobuf:"varint,12,opt,name=status,proto3,enum=wanted.Vehicle_Status" json:"status,omitempty"`
	RevisionId    string         `protobuf:"bytes,13,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
	TheftDate     *common.Date   `protobuf:"bytes,14,opt,name=theft_date,json=theftDate,proto3" json:"theft_date,omitempty"`
	InsertDate    *common.Date   `protobuf:"bytes,15,opt,name=insert_date,json=insertDate,proto3" json:"insert_date,omitempty"`
	// contains filtered or unexported fields
}

func (*Vehicle) Descriptor deprecated

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

Deprecated: Use Vehicle.ProtoReflect.Descriptor instead.

func (*Vehicle) GetBodyNumber

func (x *Vehicle) GetBodyNumber() string

func (*Vehicle) GetBrand

func (x *Vehicle) GetBrand() string

func (*Vehicle) GetChassisNumber

func (x *Vehicle) GetChassisNumber() string

func (*Vehicle) GetColor

func (x *Vehicle) GetColor() string

func (*Vehicle) GetEngineNumber

func (x *Vehicle) GetEngineNumber() string

func (*Vehicle) GetId

func (x *Vehicle) GetId() string

func (*Vehicle) GetInsertDate

func (x *Vehicle) GetInsertDate() *common.Date

func (*Vehicle) GetKind

func (x *Vehicle) GetKind() string

func (*Vehicle) GetModel

func (x *Vehicle) GetModel() string

func (*Vehicle) GetNumber

func (x *Vehicle) GetNumber() string

func (*Vehicle) GetOvd

func (x *Vehicle) GetOvd() string

func (*Vehicle) GetRevisionId

func (x *Vehicle) GetRevisionId() string

func (*Vehicle) GetStatus

func (x *Vehicle) GetStatus() Vehicle_Status

func (*Vehicle) GetTheftDate

func (x *Vehicle) GetTheftDate() *common.Date

func (*Vehicle) GetTitle

func (x *Vehicle) GetTitle() string

func (*Vehicle) ProtoMessage

func (*Vehicle) ProtoMessage()

func (*Vehicle) ProtoReflect

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

func (*Vehicle) Reset

func (x *Vehicle) Reset()

func (*Vehicle) String

func (x *Vehicle) String() string

type Vehicle_Status

type Vehicle_Status int32
const (
	Vehicle_STATUS_UNKNOWN Vehicle_Status = 0
	Vehicle_STATUS_STOLEN  Vehicle_Status = 1
	Vehicle_STATUS_REMOVED Vehicle_Status = 2
)

func (Vehicle_Status) Descriptor

func (Vehicle_Status) Enum

func (x Vehicle_Status) Enum() *Vehicle_Status

func (Vehicle_Status) EnumDescriptor deprecated

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

Deprecated: Use Vehicle_Status.Descriptor instead.

func (Vehicle_Status) Number

func (Vehicle_Status) String

func (x Vehicle_Status) String() string

func (Vehicle_Status) Type

Jump to

Keyboard shortcuts

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