coremedia

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stroeer.coremedia.v1.CurationService",
	HandlerType: (*CurationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCuratedStages",
			Handler:    _CurationService_GetCuratedStages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stroeer/coremedia/v1/curation_service.proto",
}

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

View Source
var File_stroeer_coremedia_v1_curated_stage_proto protoreflect.FileDescriptor
View Source
var File_stroeer_coremedia_v1_curation_service_proto protoreflect.FileDescriptor

Functions

func RegisterCurationServiceServer

func RegisterCurationServiceServer(s grpc.ServiceRegistrar, srv CurationServiceServer)

Types

type CuratedArticle

type CuratedArticle struct {

	// Numeric id of the curated article, for resolving to an actual Article.
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional, and usually shorter headline, set by a CvD used for teasing articles on overview pages.
	CuratedHeadline string `protobuf:"bytes,3,opt,name=curated_headline,json=curatedHeadline,proto3" json:"curated_headline,omitempty"`
	// contains filtered or unexported fields
}

A message to package an article id with a differing headline for overview pages.

func (*CuratedArticle) Descriptor deprecated

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

Deprecated: Use CuratedArticle.ProtoReflect.Descriptor instead.

func (*CuratedArticle) GetCuratedHeadline

func (x *CuratedArticle) GetCuratedHeadline() string

func (*CuratedArticle) GetId

func (x *CuratedArticle) GetId() int64

func (*CuratedArticle) ProtoMessage

func (*CuratedArticle) ProtoMessage()

func (*CuratedArticle) ProtoReflect

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

func (*CuratedArticle) Reset

func (x *CuratedArticle) Reset()

func (*CuratedArticle) String

func (x *CuratedArticle) String() string

type CuratedStage

type CuratedStage struct {

	// List of articles curated by a CvD
	Articles []*CuratedArticle `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"`
	// Optional label from a CvD for the block, like "CORONAVIRUS"
	StageLabel string `protobuf:"bytes,2,opt,name=stage_label,json=stageLabel,proto3" json:"stage_label,omitempty"`
	// Conventional id for this stage, like 'aufmacher', 'panorama' or 'schlagzeilen'
	// If the request provided a numeric id, the stage_id will be the string value of it.
	StageId string `protobuf:"bytes,3,opt,name=stage_id,json=stageId,proto3" json:"stage_id,omitempty"`
	// Numeric id in the CMS, that maps to the descriptive stage_id.
	ListId int64 `protobuf:"varint,4,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"`
	// contains filtered or unexported fields
}

A collection of articles for one block of teasers on overview pages

func (*CuratedStage) Descriptor deprecated

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

Deprecated: Use CuratedStage.ProtoReflect.Descriptor instead.

func (*CuratedStage) GetArticles

func (x *CuratedStage) GetArticles() []*CuratedArticle

func (*CuratedStage) GetListId

func (x *CuratedStage) GetListId() int64

func (*CuratedStage) GetStageId

func (x *CuratedStage) GetStageId() string

func (*CuratedStage) GetStageLabel

func (x *CuratedStage) GetStageLabel() string

func (*CuratedStage) ProtoMessage

func (*CuratedStage) ProtoMessage()

func (*CuratedStage) ProtoReflect

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

func (*CuratedStage) Reset

func (x *CuratedStage) Reset()

func (*CuratedStage) String

func (x *CuratedStage) String() string

type CurationServiceClient

type CurationServiceClient interface {
	// Responds with curation data for the provided request parameters.
	GetCuratedStages(ctx context.Context, in *GetCuratedStagesRequest, opts ...grpc.CallOption) (*GetCuratedStagesResponse, error)
}

CurationServiceClient is the client API for CurationService 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 CurationServiceServer

type CurationServiceServer interface {
	// Responds with curation data for the provided request parameters.
	GetCuratedStages(context.Context, *GetCuratedStagesRequest) (*GetCuratedStagesResponse, error)
	// contains filtered or unexported methods
}

CurationServiceServer is the server API for CurationService service. All implementations must embed UnimplementedCurationServiceServer for forward compatibility

type GetCuratedStagesRequest

type GetCuratedStagesRequest struct {

	// List of descriptive stage_ids, like 'aufmacher', 'sport', 'schlagzeilen'.
	// When providing a numeric id, like '69725912, it will be used to fetch a CMS list with that id.
	StageIds []string `protobuf:"bytes,1,rep,name=stage_ids,json=stageIds,proto3" json:"stage_ids,omitempty"`
	// contains filtered or unexported fields
}

Message that defines parameters for invoking GetCuratedStages method.

func (*GetCuratedStagesRequest) Descriptor deprecated

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

Deprecated: Use GetCuratedStagesRequest.ProtoReflect.Descriptor instead.

func (*GetCuratedStagesRequest) GetStageIds

func (x *GetCuratedStagesRequest) GetStageIds() []string

func (*GetCuratedStagesRequest) ProtoMessage

func (*GetCuratedStagesRequest) ProtoMessage()

func (*GetCuratedStagesRequest) ProtoReflect

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

func (*GetCuratedStagesRequest) Reset

func (x *GetCuratedStagesRequest) Reset()

func (*GetCuratedStagesRequest) String

func (x *GetCuratedStagesRequest) String() string

type GetCuratedStagesResponse

type GetCuratedStagesResponse struct {
	Stages []*CuratedStage `protobuf:"bytes,1,rep,name=stages,proto3" json:"stages,omitempty"`
	// contains filtered or unexported fields
}

Response object with the list of CuratedStages, one for each provided stage_id, that could be resolved to curation data.

func (*GetCuratedStagesResponse) Descriptor deprecated

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

Deprecated: Use GetCuratedStagesResponse.ProtoReflect.Descriptor instead.

func (*GetCuratedStagesResponse) GetStages

func (x *GetCuratedStagesResponse) GetStages() []*CuratedStage

func (*GetCuratedStagesResponse) ProtoMessage

func (*GetCuratedStagesResponse) ProtoMessage()

func (*GetCuratedStagesResponse) ProtoReflect

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

func (*GetCuratedStagesResponse) Reset

func (x *GetCuratedStagesResponse) Reset()

func (*GetCuratedStagesResponse) String

func (x *GetCuratedStagesResponse) String() string

type UnimplementedCurationServiceServer

type UnimplementedCurationServiceServer struct {
}

UnimplementedCurationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCurationServiceServer) GetCuratedStages

type UnsafeCurationServiceServer

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

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

Jump to

Keyboard shortcuts

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