Documentation ¶
Index ¶
- Variables
- func RegisterValuationsServiceServer(s grpc.ServiceRegistrar, srv ValuationsServiceServer)
- type UnimplementedValuationsServiceServer
- type UnsafeValuationsServiceServer
- type ValuationResponse
- func (*ValuationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValuationResponse) GetGrowthPercentage() float32
- func (x *ValuationResponse) GetTotal() float32
- func (*ValuationResponse) ProtoMessage()
- func (x *ValuationResponse) ProtoReflect() protoreflect.Message
- func (x *ValuationResponse) Reset()
- func (x *ValuationResponse) String() string
- type ValuationsServiceClient
- type ValuationsServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pkg_grpc_valuations_proto protoreflect.FileDescriptor
var ValuationsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "valuations.ValuationsService", HandlerType: (*ValuationsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAllValuations", Handler: _ValuationsService_GetAllValuations_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/grpc/valuations.proto", }
ValuationsService_ServiceDesc is the grpc.ServiceDesc for ValuationsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterValuationsServiceServer ¶
func RegisterValuationsServiceServer(s grpc.ServiceRegistrar, srv ValuationsServiceServer)
Types ¶
type UnimplementedValuationsServiceServer ¶
type UnimplementedValuationsServiceServer struct { }
UnimplementedValuationsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedValuationsServiceServer) GetAllValuations ¶
func (UnimplementedValuationsServiceServer) GetAllValuations(context.Context, *emptypb.Empty) (*ValuationResponse, error)
type UnsafeValuationsServiceServer ¶
type UnsafeValuationsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeValuationsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValuationsServiceServer will result in compilation errors.
type ValuationResponse ¶
type ValuationResponse struct { Total float32 `protobuf:"fixed32,1,opt,name=total,proto3" json:"total,omitempty"` GrowthPercentage float32 `protobuf:"fixed32,2,opt,name=growthPercentage,proto3" json:"growthPercentage,omitempty"` // contains filtered or unexported fields }
func (*ValuationResponse) Descriptor
deprecated
func (*ValuationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValuationResponse.ProtoReflect.Descriptor instead.
func (*ValuationResponse) GetGrowthPercentage ¶
func (x *ValuationResponse) GetGrowthPercentage() float32
func (*ValuationResponse) GetTotal ¶
func (x *ValuationResponse) GetTotal() float32
func (*ValuationResponse) ProtoMessage ¶
func (*ValuationResponse) ProtoMessage()
func (*ValuationResponse) ProtoReflect ¶
func (x *ValuationResponse) ProtoReflect() protoreflect.Message
func (*ValuationResponse) Reset ¶
func (x *ValuationResponse) Reset()
func (*ValuationResponse) String ¶
func (x *ValuationResponse) String() string
type ValuationsServiceClient ¶
type ValuationsServiceClient interface {
GetAllValuations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ValuationResponse, error)
}
ValuationsServiceClient is the client API for ValuationsService 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 NewValuationsServiceClient ¶
func NewValuationsServiceClient(cc grpc.ClientConnInterface) ValuationsServiceClient
type ValuationsServiceServer ¶
type ValuationsServiceServer interface { GetAllValuations(context.Context, *emptypb.Empty) (*ValuationResponse, error) // contains filtered or unexported methods }
ValuationsServiceServer is the server API for ValuationsService service. All implementations must embed UnimplementedValuationsServiceServer for forward compatibility