grpc

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_grpc_valuations_proto protoreflect.FileDescriptor
View Source
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

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.

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

Jump to

Keyboard shortcuts

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