Documentation ¶
Overview ¶
Package results_go_proto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterLogsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLogsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogsClient) error
- func RegisterLogsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLogsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogsServer) error
- func RegisterLogsServer(s grpc.ServiceRegistrar, srv LogsServer)
- type GetLogRequest
- type LogsClient
- type LogsServer
- type Logs_GetLogClient
- type Logs_GetLogServer
- type UnimplementedLogsServer
- type UnsafeLogsServer
Constants ¶
const (
Logs_GetLog_FullMethodName = "/tekton.results.v1alpha3.Logs/GetLog"
)
Variables ¶
var File_log_proto protoreflect.FileDescriptor
var Logs_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tekton.results.v1alpha3.Logs", HandlerType: (*LogsServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "GetLog", Handler: _Logs_GetLog_Handler, ServerStreams: true, }, }, Metadata: "log.proto", }
Logs_ServiceDesc is the grpc.ServiceDesc for Logs service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLogsHandler ¶
RegisterLogsHandler registers the http handlers for service Logs to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLogsHandlerClient ¶
RegisterLogsHandlerClient registers the http handlers for service Logs to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LogsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LogsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LogsClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterLogsHandlerFromEndpoint ¶
func RegisterLogsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLogsHandlerFromEndpoint is same as RegisterLogsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLogsHandlerServer ¶
RegisterLogsHandlerServer registers the http handlers for service Logs to "mux". UnaryRPC :call LogsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLogsHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterLogsServer ¶
func RegisterLogsServer(s grpc.ServiceRegistrar, srv LogsServer)
Types ¶
type GetLogRequest ¶
type GetLogRequest struct { // Name of the log resource to stream Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetLogRequest) Descriptor
deprecated
func (*GetLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLogRequest.ProtoReflect.Descriptor instead.
func (*GetLogRequest) GetName ¶
func (x *GetLogRequest) GetName() string
func (*GetLogRequest) ProtoMessage ¶
func (*GetLogRequest) ProtoMessage()
func (*GetLogRequest) ProtoReflect ¶
func (x *GetLogRequest) ProtoReflect() protoreflect.Message
func (*GetLogRequest) Reset ¶
func (x *GetLogRequest) Reset()
func (*GetLogRequest) String ¶
func (x *GetLogRequest) String() string
type LogsClient ¶
type LogsClient interface {
GetLog(ctx context.Context, in *GetLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[httpbody.HttpBody], error)
}
LogsClient is the client API for Logs 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 NewLogsClient ¶
func NewLogsClient(cc grpc.ClientConnInterface) LogsClient
type LogsServer ¶
type LogsServer interface { GetLog(*GetLogRequest, grpc.ServerStreamingServer[httpbody.HttpBody]) error // contains filtered or unexported methods }
LogsServer is the server API for Logs service. All implementations must embed UnimplementedLogsServer for forward compatibility.
type Logs_GetLogClient ¶
type Logs_GetLogClient = grpc.ServerStreamingClient[httpbody.HttpBody]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Logs_GetLogServer ¶
type Logs_GetLogServer = grpc.ServerStreamingServer[httpbody.HttpBody]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedLogsServer ¶
type UnimplementedLogsServer struct{}
UnimplementedLogsServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedLogsServer) GetLog ¶
func (UnimplementedLogsServer) GetLog(*GetLogRequest, grpc.ServerStreamingServer[httpbody.HttpBody]) error
type UnsafeLogsServer ¶
type UnsafeLogsServer interface {
// contains filtered or unexported methods
}
UnsafeLogsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogsServer will result in compilation errors.