Documentation ¶
Index ¶
- Variables
- func RegisterStageServiceServer(s grpc.ServiceRegistrar, srv StageServiceServer)
- type GetStagesRequest
- type GetStagesResponse
- func (*GetStagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStagesResponse) GetStages() []*v1.Stage
- func (*GetStagesResponse) ProtoMessage()
- func (x *GetStagesResponse) ProtoReflect() protoreflect.Message
- func (x *GetStagesResponse) Reset()
- func (x *GetStagesResponse) String() string
- type StageServiceClient
- type StageServiceServer
- type UnimplementedStageServiceServer
- type UnsafeStageServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_stroeer_fragment_v1_stage_service_proto protoreflect.FileDescriptor
var StageService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "stroeer.fragment.v1.StageService", HandlerType: (*StageServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStages", Handler: _StageService_GetStages_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "stroeer/fragment/v1/stage_service.proto", }
StageService_ServiceDesc is the grpc.ServiceDesc for StageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStageServiceServer ¶
func RegisterStageServiceServer(s grpc.ServiceRegistrar, srv StageServiceServer)
Types ¶
type GetStagesRequest ¶
type GetStagesRequest struct { // ids must be well-known to the frontend and backend, for example "schlagzeilen" Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
Message to request stages independent of SectionPages, for client side rendering or ESIs
func (*GetStagesRequest) Descriptor
deprecated
func (*GetStagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStagesRequest.ProtoReflect.Descriptor instead.
func (*GetStagesRequest) GetIds ¶
func (x *GetStagesRequest) GetIds() []string
func (*GetStagesRequest) ProtoMessage ¶
func (*GetStagesRequest) ProtoMessage()
func (*GetStagesRequest) ProtoReflect ¶
func (x *GetStagesRequest) ProtoReflect() protoreflect.Message
func (*GetStagesRequest) Reset ¶
func (x *GetStagesRequest) Reset()
func (*GetStagesRequest) String ¶
func (x *GetStagesRequest) String() string
type GetStagesResponse ¶
type GetStagesResponse struct { Stages []*v1.Stage `protobuf:"bytes,1,rep,name=stages,proto3" json:"stages,omitempty"` // contains filtered or unexported fields }
Message for requesting data for single stages All provided ids that could be resolved to stages are part of the response, others are omitted.
func (*GetStagesResponse) Descriptor
deprecated
func (*GetStagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStagesResponse.ProtoReflect.Descriptor instead.
func (*GetStagesResponse) GetStages ¶
func (x *GetStagesResponse) GetStages() []*v1.Stage
func (*GetStagesResponse) ProtoMessage ¶
func (*GetStagesResponse) ProtoMessage()
func (*GetStagesResponse) ProtoReflect ¶
func (x *GetStagesResponse) ProtoReflect() protoreflect.Message
func (*GetStagesResponse) Reset ¶
func (x *GetStagesResponse) Reset()
func (*GetStagesResponse) String ¶
func (x *GetStagesResponse) String() string
type StageServiceClient ¶
type StageServiceClient interface { //* //############################################################################ //# Description //############################################################################ //Get single stages by requesting them via well-known ids, e.g. "schlagzeilen" or "meistgelesen". // //############################################################################ //# Status/Error scenario's //############################################################################ // //scenario: found //description: service responded without encountering exceptions //gRPC status: OK //gRPC error payload: none //HTTP status: OK //cacheable: yes // //scenario: internal //description: internal error while loading data //gRPC status: INTERNAL //gRPC error payload: none //HTTP status: 500 //cacheable: no // //scenario: timeout //description: timeout while loading data //gRPC status: DEADLINE_EXCEEDED //gRPC error payload: none //HTTP status: 504 //cacheable: no GetStages(ctx context.Context, in *GetStagesRequest, opts ...grpc.CallOption) (*GetStagesResponse, error) }
StageServiceClient is the client API for StageService 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 NewStageServiceClient ¶
func NewStageServiceClient(cc grpc.ClientConnInterface) StageServiceClient
type StageServiceServer ¶
type StageServiceServer interface { //* //############################################################################ //# Description //############################################################################ //Get single stages by requesting them via well-known ids, e.g. "schlagzeilen" or "meistgelesen". // //############################################################################ //# Status/Error scenario's //############################################################################ // //scenario: found //description: service responded without encountering exceptions //gRPC status: OK //gRPC error payload: none //HTTP status: OK //cacheable: yes // //scenario: internal //description: internal error while loading data //gRPC status: INTERNAL //gRPC error payload: none //HTTP status: 500 //cacheable: no // //scenario: timeout //description: timeout while loading data //gRPC status: DEADLINE_EXCEEDED //gRPC error payload: none //HTTP status: 504 //cacheable: no GetStages(context.Context, *GetStagesRequest) (*GetStagesResponse, error) // contains filtered or unexported methods }
StageServiceServer is the server API for StageService service. All implementations must embed UnimplementedStageServiceServer for forward compatibility
type UnimplementedStageServiceServer ¶
type UnimplementedStageServiceServer struct { }
UnimplementedStageServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStageServiceServer) GetStages ¶
func (UnimplementedStageServiceServer) GetStages(context.Context, *GetStagesRequest) (*GetStagesResponse, error)
type UnsafeStageServiceServer ¶
type UnsafeStageServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StageServiceServer will result in compilation errors.