grpc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_Ingest_FullMethodName          = "/grpc.API/Ingest"
	API_RehydrateLatest_FullMethodName = "/grpc.API/RehydrateLatest"
)

Variables

View Source
var API_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.API",
	HandlerType: (*APIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ingest",
			Handler:    _API_Ingest_Handler,
		},
		{
			MethodName: "RehydrateLatest",
			Handler:    _API_RehydrateLatest_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAPIServer

func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)

Types

type APIClient

type APIClient interface {
	Ingest(ctx context.Context, in *IngestRequest, opts ...grpc.CallOption) (*IngestResponse, error)
	RehydrateLatest(ctx context.Context, in *RehydrateLatestRequest, opts ...grpc.CallOption) (*RehydrateLatestResponse, error)
}

APIClient is the client API for API 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 NewAPIClient

func NewAPIClient(cc grpc.ClientConnInterface) APIClient

type APIServer

type APIServer interface {
	Ingest(context.Context, *IngestRequest) (*IngestResponse, error)
	RehydrateLatest(context.Context, *RehydrateLatestRequest) (*RehydrateLatestResponse, error)
	// contains filtered or unexported methods
}

APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility

type IngestRequest

type IngestRequest struct {
	RunId       string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
	// contains filtered or unexported fields
}

func (*IngestRequest) Descriptor deprecated

func (*IngestRequest) Descriptor() ([]byte, []int)

Deprecated: Use IngestRequest.ProtoReflect.Descriptor instead.

func (*IngestRequest) GetClusterName

func (x *IngestRequest) GetClusterName() string

func (*IngestRequest) GetRunId

func (x *IngestRequest) GetRunId() string

func (*IngestRequest) ProtoMessage

func (*IngestRequest) ProtoMessage()

func (*IngestRequest) ProtoReflect

func (x *IngestRequest) ProtoReflect() protoreflect.Message

func (*IngestRequest) Reset

func (x *IngestRequest) Reset()

func (*IngestRequest) String

func (x *IngestRequest) String() string

type IngestResponse

type IngestResponse struct {
	// contains filtered or unexported fields
}

func (*IngestResponse) Descriptor deprecated

func (*IngestResponse) Descriptor() ([]byte, []int)

Deprecated: Use IngestResponse.ProtoReflect.Descriptor instead.

func (*IngestResponse) ProtoMessage

func (*IngestResponse) ProtoMessage()

func (*IngestResponse) ProtoReflect

func (x *IngestResponse) ProtoReflect() protoreflect.Message

func (*IngestResponse) Reset

func (x *IngestResponse) Reset()

func (*IngestResponse) String

func (x *IngestResponse) String() string

type IngestedCluster added in v1.3.3

type IngestedCluster struct {
	ClusterName string                 `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
	Key         string                 `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	Date        *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

func (*IngestedCluster) Descriptor deprecated added in v1.3.3

func (*IngestedCluster) Descriptor() ([]byte, []int)

Deprecated: Use IngestedCluster.ProtoReflect.Descriptor instead.

func (*IngestedCluster) GetClusterName added in v1.3.3

func (x *IngestedCluster) GetClusterName() string

func (*IngestedCluster) GetDate added in v1.3.3

func (x *IngestedCluster) GetDate() *timestamppb.Timestamp

func (*IngestedCluster) GetRunId added in v1.3.3

func (x *IngestedCluster) GetRunId() string

func (*IngestedCluster) ProtoMessage added in v1.3.3

func (*IngestedCluster) ProtoMessage()

func (*IngestedCluster) ProtoReflect added in v1.3.3

func (x *IngestedCluster) ProtoReflect() protoreflect.Message

func (*IngestedCluster) Reset added in v1.3.3

func (x *IngestedCluster) Reset()

func (*IngestedCluster) String added in v1.3.3

func (x *IngestedCluster) String() string

type RehydrateLatestRequest added in v1.3.3

type RehydrateLatestRequest struct {
	// contains filtered or unexported fields
}

func (*RehydrateLatestRequest) Descriptor deprecated added in v1.3.3

func (*RehydrateLatestRequest) Descriptor() ([]byte, []int)

Deprecated: Use RehydrateLatestRequest.ProtoReflect.Descriptor instead.

func (*RehydrateLatestRequest) ProtoMessage added in v1.3.3

func (*RehydrateLatestRequest) ProtoMessage()

func (*RehydrateLatestRequest) ProtoReflect added in v1.3.3

func (x *RehydrateLatestRequest) ProtoReflect() protoreflect.Message

func (*RehydrateLatestRequest) Reset added in v1.3.3

func (x *RehydrateLatestRequest) Reset()

func (*RehydrateLatestRequest) String added in v1.3.3

func (x *RehydrateLatestRequest) String() string

type RehydrateLatestResponse added in v1.3.3

type RehydrateLatestResponse struct {
	IngestedCluster []*IngestedCluster `protobuf:"bytes,1,rep,name=ingested_cluster,json=ingestedCluster,proto3" json:"ingested_cluster,omitempty"`
	// contains filtered or unexported fields
}

func (*RehydrateLatestResponse) Descriptor deprecated added in v1.3.3

func (*RehydrateLatestResponse) Descriptor() ([]byte, []int)

Deprecated: Use RehydrateLatestResponse.ProtoReflect.Descriptor instead.

func (*RehydrateLatestResponse) GetIngestedCluster added in v1.3.3

func (x *RehydrateLatestResponse) GetIngestedCluster() []*IngestedCluster

func (*RehydrateLatestResponse) ProtoMessage added in v1.3.3

func (*RehydrateLatestResponse) ProtoMessage()

func (*RehydrateLatestResponse) ProtoReflect added in v1.3.3

func (x *RehydrateLatestResponse) ProtoReflect() protoreflect.Message

func (*RehydrateLatestResponse) Reset added in v1.3.3

func (x *RehydrateLatestResponse) Reset()

func (*RehydrateLatestResponse) String added in v1.3.3

func (x *RehydrateLatestResponse) String() string

type UnimplementedAPIServer

type UnimplementedAPIServer struct {
}

UnimplementedAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAPIServer) Ingest

func (UnimplementedAPIServer) RehydrateLatest added in v1.3.3

type UnsafeAPIServer

type UnsafeAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.

Jump to

Keyboard shortcuts

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