fragment

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_stroeer_fragment_v1_stage_service_proto protoreflect.FileDescriptor
View Source
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.

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

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.

Jump to

Keyboard shortcuts

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