Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CommonService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "odpf.common.v1.CommonService", HandlerType: (*CommonServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _CommonService_GetVersion_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "odpf/common/v1/service.proto", }
CommonService_ServiceDesc is the grpc.ServiceDesc for CommonService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCommonServiceServer ¶
func RegisterCommonServiceServer(s grpc.ServiceRegistrar, srv CommonServiceServer)
Types ¶
type CommonServiceClient ¶
type CommonServiceClient interface {
GetVersion(ctx context.Context, in *v1.GetVersionRequest, opts ...grpc.CallOption) (*v1.GetVersionResponse, error)
}
CommonServiceClient is the client API for CommonService 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 NewCommonServiceClient ¶
func NewCommonServiceClient(cc grpc.ClientConnInterface) CommonServiceClient
type CommonServiceServer ¶
type CommonServiceServer interface {
GetVersion(context.Context, *v1.GetVersionRequest) (*v1.GetVersionResponse, error)
}
CommonServiceServer is the server API for CommonService service. All implementations should embed UnimplementedCommonServiceServer for forward compatibility
type UnimplementedCommonServiceServer ¶
type UnimplementedCommonServiceServer struct { }
UnimplementedCommonServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedCommonServiceServer) GetVersion ¶
func (UnimplementedCommonServiceServer) GetVersion(context.Context, *v1.GetVersionRequest) (*v1.GetVersionResponse, error)
type UnsafeCommonServiceServer ¶
type UnsafeCommonServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCommonServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommonServiceServer will result in compilation errors.