Documentation
¶
Index ¶
- Variables
- func RegisterLogisticCommunicateServer(s *grpc.Server, srv LogisticCommunicateServer)
- type CalculateResponse
- func (*CalculateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateResponse) GetDestiny() *LatAndLong
- func (x *CalculateResponse) GetDuration() string
- func (x *CalculateResponse) GetHumanReadable() string
- func (x *CalculateResponse) GetMeters() string
- func (x *CalculateResponse) GetOrigin() *LatAndLong
- func (*CalculateResponse) ProtoMessage()
- func (x *CalculateResponse) ProtoReflect() protoreflect.Message
- func (x *CalculateResponse) Reset()
- func (x *CalculateResponse) String() string
- type CalulateRequest
- func (*CalulateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CalulateRequest) GetIdCarring() string
- func (x *CalulateRequest) GetIdClient() string
- func (*CalulateRequest) ProtoMessage()
- func (x *CalulateRequest) ProtoReflect() protoreflect.Message
- func (x *CalulateRequest) Reset()
- func (x *CalulateRequest) String() string
- type LatAndLong
- type LogisticCommunicateClient
- type LogisticCommunicateServer
- type UnimplementedLogisticCommunicateServer
- func (*UnimplementedLogisticCommunicateServer) CalculateLogistic(context.Context, *CalulateRequest) (*CalculateResponse, error)
- func (*UnimplementedLogisticCommunicateServer) ValidateCarringById(context.Context, *ValidateCarryingRequest) (*ValidateCarryingResponse, error)
- func (*UnimplementedLogisticCommunicateServer) ValidateClientById(context.Context, *ValidateClientRequest) (*ValidateClientResponse, error)
- type ValidateCarryingRequest
- func (*ValidateCarryingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateCarryingRequest) GetIdCarring() string
- func (*ValidateCarryingRequest) ProtoMessage()
- func (x *ValidateCarryingRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateCarryingRequest) Reset()
- func (x *ValidateCarryingRequest) String() string
- type ValidateCarryingResponse
- func (*ValidateCarryingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateCarryingResponse) GetValid() bool
- func (*ValidateCarryingResponse) ProtoMessage()
- func (x *ValidateCarryingResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateCarryingResponse) Reset()
- func (x *ValidateCarryingResponse) String() string
- type ValidateClientRequest
- func (*ValidateClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateClientRequest) GetIdClient() string
- func (*ValidateClientRequest) ProtoMessage()
- func (x *ValidateClientRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateClientRequest) Reset()
- func (x *ValidateClientRequest) String() string
- type ValidateClientResponse
- func (*ValidateClientResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateClientResponse) GetValid() bool
- func (*ValidateClientResponse) ProtoMessage()
- func (x *ValidateClientResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateClientResponse) Reset()
- func (x *ValidateClientResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_logistic_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLogisticCommunicateServer ¶
func RegisterLogisticCommunicateServer(s *grpc.Server, srv LogisticCommunicateServer)
Types ¶
type CalculateResponse ¶
type CalculateResponse struct {
Origin *LatAndLong `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
Destiny *LatAndLong `protobuf:"bytes,2,opt,name=destiny,proto3" json:"destiny,omitempty"`
Meters string `protobuf:"bytes,3,opt,name=meters,proto3" json:"meters,omitempty"`
Duration string `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
HumanReadable string `protobuf:"bytes,5,opt,name=HumanReadable,proto3" json:"HumanReadable,omitempty"`
// contains filtered or unexported fields
}
func (*CalculateResponse) Descriptor
deprecated
func (*CalculateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CalculateResponse.ProtoReflect.Descriptor instead.
func (*CalculateResponse) GetDestiny ¶
func (x *CalculateResponse) GetDestiny() *LatAndLong
func (*CalculateResponse) GetDuration ¶
func (x *CalculateResponse) GetDuration() string
func (*CalculateResponse) GetHumanReadable ¶
func (x *CalculateResponse) GetHumanReadable() string
func (*CalculateResponse) GetMeters ¶
func (x *CalculateResponse) GetMeters() string
func (*CalculateResponse) GetOrigin ¶
func (x *CalculateResponse) GetOrigin() *LatAndLong
func (*CalculateResponse) ProtoMessage ¶
func (*CalculateResponse) ProtoMessage()
func (*CalculateResponse) ProtoReflect ¶
func (x *CalculateResponse) ProtoReflect() protoreflect.Message
func (*CalculateResponse) Reset ¶
func (x *CalculateResponse) Reset()
func (*CalculateResponse) String ¶
func (x *CalculateResponse) String() string
type CalulateRequest ¶
type CalulateRequest struct {
IdCarring string `protobuf:"bytes,1,opt,name=idCarring,proto3" json:"idCarring,omitempty"`
IdClient string `protobuf:"bytes,2,opt,name=idClient,proto3" json:"idClient,omitempty"`
// contains filtered or unexported fields
}
func (*CalulateRequest) Descriptor
deprecated
func (*CalulateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CalulateRequest.ProtoReflect.Descriptor instead.
func (*CalulateRequest) GetIdCarring ¶
func (x *CalulateRequest) GetIdCarring() string
func (*CalulateRequest) GetIdClient ¶
func (x *CalulateRequest) GetIdClient() string
func (*CalulateRequest) ProtoMessage ¶
func (*CalulateRequest) ProtoMessage()
func (*CalulateRequest) ProtoReflect ¶
func (x *CalulateRequest) ProtoReflect() protoreflect.Message
func (*CalulateRequest) Reset ¶
func (x *CalulateRequest) Reset()
func (*CalulateRequest) String ¶
func (x *CalulateRequest) String() string
type LatAndLong ¶
type LatAndLong struct {
Lat string `protobuf:"bytes,1,opt,name=lat,proto3" json:"lat,omitempty"`
Lng string `protobuf:"bytes,2,opt,name=lng,proto3" json:"lng,omitempty"`
// contains filtered or unexported fields
}
func (*LatAndLong) Descriptor
deprecated
func (*LatAndLong) Descriptor() ([]byte, []int)
Deprecated: Use LatAndLong.ProtoReflect.Descriptor instead.
func (*LatAndLong) GetLat ¶
func (x *LatAndLong) GetLat() string
func (*LatAndLong) GetLng ¶
func (x *LatAndLong) GetLng() string
func (*LatAndLong) ProtoMessage ¶
func (*LatAndLong) ProtoMessage()
func (*LatAndLong) ProtoReflect ¶
func (x *LatAndLong) ProtoReflect() protoreflect.Message
func (*LatAndLong) Reset ¶
func (x *LatAndLong) Reset()
func (*LatAndLong) String ¶
func (x *LatAndLong) String() string
type LogisticCommunicateClient ¶
type LogisticCommunicateClient interface {
CalculateLogistic(ctx context.Context, in *CalulateRequest, opts ...grpc.CallOption) (*CalculateResponse, error)
ValidateCarringById(ctx context.Context, in *ValidateCarryingRequest, opts ...grpc.CallOption) (*ValidateCarryingResponse, error)
ValidateClientById(ctx context.Context, in *ValidateClientRequest, opts ...grpc.CallOption) (*ValidateClientResponse, error)
}
LogisticCommunicateClient is the client API for LogisticCommunicate service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogisticCommunicateClient ¶
func NewLogisticCommunicateClient(cc grpc.ClientConnInterface) LogisticCommunicateClient
type LogisticCommunicateServer ¶
type LogisticCommunicateServer interface {
CalculateLogistic(context.Context, *CalulateRequest) (*CalculateResponse, error)
ValidateCarringById(context.Context, *ValidateCarryingRequest) (*ValidateCarryingResponse, error)
ValidateClientById(context.Context, *ValidateClientRequest) (*ValidateClientResponse, error)
}
LogisticCommunicateServer is the server API for LogisticCommunicate service.
type UnimplementedLogisticCommunicateServer ¶
type UnimplementedLogisticCommunicateServer struct {
}
UnimplementedLogisticCommunicateServer can be embedded to have forward compatible implementations.
func (*UnimplementedLogisticCommunicateServer) CalculateLogistic ¶
func (*UnimplementedLogisticCommunicateServer) CalculateLogistic(context.Context, *CalulateRequest) (*CalculateResponse, error)
func (*UnimplementedLogisticCommunicateServer) ValidateCarringById ¶
func (*UnimplementedLogisticCommunicateServer) ValidateCarringById(context.Context, *ValidateCarryingRequest) (*ValidateCarryingResponse, error)
func (*UnimplementedLogisticCommunicateServer) ValidateClientById ¶
func (*UnimplementedLogisticCommunicateServer) ValidateClientById(context.Context, *ValidateClientRequest) (*ValidateClientResponse, error)
type ValidateCarryingRequest ¶
type ValidateCarryingRequest struct {
IdCarring string `protobuf:"bytes,1,opt,name=idCarring,proto3" json:"idCarring,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateCarryingRequest) Descriptor
deprecated
func (*ValidateCarryingRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateCarryingRequest.ProtoReflect.Descriptor instead.
func (*ValidateCarryingRequest) GetIdCarring ¶
func (x *ValidateCarryingRequest) GetIdCarring() string
func (*ValidateCarryingRequest) ProtoMessage ¶
func (*ValidateCarryingRequest) ProtoMessage()
func (*ValidateCarryingRequest) ProtoReflect ¶
func (x *ValidateCarryingRequest) ProtoReflect() protoreflect.Message
func (*ValidateCarryingRequest) Reset ¶
func (x *ValidateCarryingRequest) Reset()
func (*ValidateCarryingRequest) String ¶
func (x *ValidateCarryingRequest) String() string
type ValidateCarryingResponse ¶
type ValidateCarryingResponse struct {
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateCarryingResponse) Descriptor
deprecated
func (*ValidateCarryingResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateCarryingResponse.ProtoReflect.Descriptor instead.
func (*ValidateCarryingResponse) GetValid ¶
func (x *ValidateCarryingResponse) GetValid() bool
func (*ValidateCarryingResponse) ProtoMessage ¶
func (*ValidateCarryingResponse) ProtoMessage()
func (*ValidateCarryingResponse) ProtoReflect ¶
func (x *ValidateCarryingResponse) ProtoReflect() protoreflect.Message
func (*ValidateCarryingResponse) Reset ¶
func (x *ValidateCarryingResponse) Reset()
func (*ValidateCarryingResponse) String ¶
func (x *ValidateCarryingResponse) String() string
type ValidateClientRequest ¶
type ValidateClientRequest struct {
IdClient string `protobuf:"bytes,1,opt,name=idClient,proto3" json:"idClient,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateClientRequest) Descriptor
deprecated
func (*ValidateClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateClientRequest.ProtoReflect.Descriptor instead.
func (*ValidateClientRequest) GetIdClient ¶
func (x *ValidateClientRequest) GetIdClient() string
func (*ValidateClientRequest) ProtoMessage ¶
func (*ValidateClientRequest) ProtoMessage()
func (*ValidateClientRequest) ProtoReflect ¶
func (x *ValidateClientRequest) ProtoReflect() protoreflect.Message
func (*ValidateClientRequest) Reset ¶
func (x *ValidateClientRequest) Reset()
func (*ValidateClientRequest) String ¶
func (x *ValidateClientRequest) String() string
type ValidateClientResponse ¶
type ValidateClientResponse struct {
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateClientResponse) Descriptor
deprecated
func (*ValidateClientResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateClientResponse.ProtoReflect.Descriptor instead.
func (*ValidateClientResponse) GetValid ¶
func (x *ValidateClientResponse) GetValid() bool
func (*ValidateClientResponse) ProtoMessage ¶
func (*ValidateClientResponse) ProtoMessage()
func (*ValidateClientResponse) ProtoReflect ¶
func (x *ValidateClientResponse) ProtoReflect() protoreflect.Message
func (*ValidateClientResponse) Reset ¶
func (x *ValidateClientResponse) Reset()
func (*ValidateClientResponse) String ¶
func (x *ValidateClientResponse) String() string