Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Datasource_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Datasource", HandlerType: (*DatasourceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _Datasource_GetVersion_Handler, }, { MethodName: "BuildData", Handler: _Datasource_BuildData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "datasource.proto", }
Datasource_ServiceDesc is the grpc.ServiceDesc for Datasource service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_datasource_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDatasourceServer ¶
func RegisterDatasourceServer(s grpc.ServiceRegistrar, srv DatasourceServer)
Types ¶
type DatasourceClient ¶
type DatasourceClient interface { GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) BuildData(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error) }
DatasourceClient is the client API for Datasource 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 NewDatasourceClient ¶
func NewDatasourceClient(cc grpc.ClientConnInterface) DatasourceClient
type DatasourceServer ¶
type DatasourceServer interface { GetVersion(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error) BuildData(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error) // contains filtered or unexported methods }
DatasourceServer is the server API for Datasource service. All implementations must embed UnimplementedDatasourceServer for forward compatibility
type UnimplementedDatasourceServer ¶
type UnimplementedDatasourceServer struct { }
UnimplementedDatasourceServer must be embedded to have forward compatible implementations.
func (UnimplementedDatasourceServer) BuildData ¶
func (UnimplementedDatasourceServer) BuildData(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error)
func (UnimplementedDatasourceServer) GetVersion ¶
func (UnimplementedDatasourceServer) GetVersion(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error)
type UnsafeDatasourceServer ¶
type UnsafeDatasourceServer interface {
// contains filtered or unexported methods
}
UnsafeDatasourceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DatasourceServer will result in compilation errors.