pb

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ArticleServiceCreateArticleProcedure is the fully-qualified name of the ArticleService's
	// CreateArticle RPC.
	ArticleServiceCreateArticleProcedure = "/proto.ArticleService/CreateArticle"
	// ArticleServiceGetArticleByIdProcedure is the fully-qualified name of the ArticleService's
	// GetArticleById RPC.
	ArticleServiceGetArticleByIdProcedure = "/proto.ArticleService/GetArticleById"
	// ArticleServiceUpdateArticleProcedure is the fully-qualified name of the ArticleService's
	// UpdateArticle RPC.
	ArticleServiceUpdateArticleProcedure = "/proto.ArticleService/UpdateArticle"
	// ArticleServiceDeleteArticleProcedure is the fully-qualified name of the ArticleService's
	// DeleteArticle RPC.
	ArticleServiceDeleteArticleProcedure = "/proto.ArticleService/DeleteArticle"
	// ArticleServiceGetArticleBySlugProcedure is the fully-qualified name of the ArticleService's
	// GetArticleBySlug RPC.
	ArticleServiceGetArticleBySlugProcedure = "/proto.ArticleService/GetArticleBySlug"
	// ArticleServiceListArticleByAuthorProcedure is the fully-qualified name of the ArticleService's
	// ListArticleByAuthor RPC.
	ArticleServiceListArticleByAuthorProcedure = "/proto.ArticleService/ListArticleByAuthor"
	// ArticleServiceListAllArticleProcedure is the fully-qualified name of the ArticleService's
	// ListAllArticle RPC.
	ArticleServiceListAllArticleProcedure = "/proto.ArticleService/ListAllArticle"
	// ArticleServiceListArticleFilterByAuthorIsFeaturedPublishedAtTitleProcedure is the fully-qualified
	// name of the ArticleService's ListArticleFilterByAuthorIsFeaturedPublishedAtTitle RPC.
	ArticleServiceListArticleFilterByAuthorIsFeaturedPublishedAtTitleProcedure = "/proto.ArticleService/ListArticleFilterByAuthorIsFeaturedPublishedAtTitle"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ArticleServiceName is the fully-qualified name of the ArticleService service.
	ArticleServiceName = "proto.ArticleService"
)

Variables

View Source
var File_schema_proto protoreflect.FileDescriptor

Functions

func NewArticleServiceHandler

func NewArticleServiceHandler(svc ArticleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewArticleServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type Article

type Article struct {

	// uuid primary key, generated on the server and not part of requests
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Human/URL identifier, e.g. hello-world
	Slug           string                 `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	Title          string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Author         string                 `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
	Subtitle       *string                `protobuf:"bytes,5,opt,name=subtitle,proto3,oneof" json:"subtitle,omitempty"`
	ReadingMinutes *int32                 `protobuf:"varint,6,opt,name=reading_minutes,json=readingMinutes,proto3,oneof" json:"reading_minutes,omitempty"`
	LastViewedMs   *int64                 `protobuf:"varint,7,opt,name=last_viewed_ms,json=lastViewedMs,proto3,oneof" json:"last_viewed_ms,omitempty"`
	Rating         *float64               `protobuf:"fixed64,8,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
	CoverImage     []byte                 `protobuf:"bytes,9,opt,name=cover_image,json=coverImage,proto3,oneof" json:"cover_image,omitempty"`
	PublishedAt    *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=published_at,json=publishedAt,proto3,oneof" json:"published_at,omitempty"`
	// Free-form metadata, e.g. {"og_image":"/cover.png"}
	Metadata   *string                `protobuf:"bytes,11,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"`
	IsFeatured bool                   `protobuf:"varint,12,opt,name=is_featured,json=isFeatured,proto3" json:"is_featured,omitempty"`
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt  *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Article represents as article entity

func (*Article) Descriptor deprecated

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetAuthor

func (x *Article) GetAuthor() string

func (*Article) GetCoverImage

func (x *Article) GetCoverImage() []byte

func (*Article) GetCreatedAt

func (x *Article) GetCreatedAt() *timestamppb.Timestamp

func (*Article) GetId added in v0.0.6

func (x *Article) GetId() string

func (*Article) GetIsFeatured

func (x *Article) GetIsFeatured() bool

func (*Article) GetLastViewedMs

func (x *Article) GetLastViewedMs() int64

func (*Article) GetMetadata

func (x *Article) GetMetadata() string

func (*Article) GetPublishedAt

func (x *Article) GetPublishedAt() *timestamppb.Timestamp

func (*Article) GetRating

func (x *Article) GetRating() float64

func (*Article) GetReadingMinutes

func (x *Article) GetReadingMinutes() int32

func (*Article) GetSlug

func (x *Article) GetSlug() string

func (*Article) GetSubtitle

func (x *Article) GetSubtitle() string

func (*Article) GetTitle

func (x *Article) GetTitle() string

func (*Article) GetUpdatedAt

func (x *Article) GetUpdatedAt() *timestamppb.Timestamp

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) ProtoReflect

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

func (*Article) Reset

func (x *Article) Reset()

func (*Article) String

func (x *Article) String() string

type ArticleServiceClient

ArticleServiceClient is a client for the proto.ArticleService service.

func NewArticleServiceClient

func NewArticleServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ArticleServiceClient

NewArticleServiceClient constructs a client for the proto.ArticleService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ArticleServiceHandler

ArticleServiceHandler is an implementation of the proto.ArticleService service.

type CreateArticleRequest

type CreateArticleRequest struct {

	// Human/URL identifier, e.g. hello-world
	Slug           string                 `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	Title          string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Author         string                 `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
	Subtitle       *string                `protobuf:"bytes,5,opt,name=subtitle,proto3,oneof" json:"subtitle,omitempty"`
	ReadingMinutes *int32                 `protobuf:"varint,6,opt,name=reading_minutes,json=readingMinutes,proto3,oneof" json:"reading_minutes,omitempty"`
	LastViewedMs   *int64                 `protobuf:"varint,7,opt,name=last_viewed_ms,json=lastViewedMs,proto3,oneof" json:"last_viewed_ms,omitempty"`
	Rating         *float64               `protobuf:"fixed64,8,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
	CoverImage     []byte                 `protobuf:"bytes,9,opt,name=cover_image,json=coverImage,proto3,oneof" json:"cover_image,omitempty"`
	PublishedAt    *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=published_at,json=publishedAt,proto3,oneof" json:"published_at,omitempty"`
	// Free-form metadata, e.g. {"og_image":"/cover.png"}
	Metadata   *string `protobuf:"bytes,11,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"`
	IsFeatured *bool   `protobuf:"varint,12,opt,name=is_featured,json=isFeatured,proto3,oneof" json:"is_featured,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateArticleRequest) Descriptor deprecated

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

Deprecated: Use CreateArticleRequest.ProtoReflect.Descriptor instead.

func (*CreateArticleRequest) GetAuthor

func (x *CreateArticleRequest) GetAuthor() string

func (*CreateArticleRequest) GetCoverImage

func (x *CreateArticleRequest) GetCoverImage() []byte

func (*CreateArticleRequest) GetIsFeatured

func (x *CreateArticleRequest) GetIsFeatured() bool

func (*CreateArticleRequest) GetLastViewedMs

func (x *CreateArticleRequest) GetLastViewedMs() int64

func (*CreateArticleRequest) GetMetadata

func (x *CreateArticleRequest) GetMetadata() string

func (*CreateArticleRequest) GetPublishedAt

func (x *CreateArticleRequest) GetPublishedAt() *timestamppb.Timestamp

func (*CreateArticleRequest) GetRating

func (x *CreateArticleRequest) GetRating() float64

func (*CreateArticleRequest) GetReadingMinutes

func (x *CreateArticleRequest) GetReadingMinutes() int32

func (*CreateArticleRequest) GetSlug

func (x *CreateArticleRequest) GetSlug() string

func (*CreateArticleRequest) GetSubtitle

func (x *CreateArticleRequest) GetSubtitle() string

func (*CreateArticleRequest) GetTitle

func (x *CreateArticleRequest) GetTitle() string

func (*CreateArticleRequest) ProtoMessage

func (*CreateArticleRequest) ProtoMessage()

func (*CreateArticleRequest) ProtoReflect

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

func (*CreateArticleRequest) Reset

func (x *CreateArticleRequest) Reset()

func (*CreateArticleRequest) String

func (x *CreateArticleRequest) String() string

func (*CreateArticleRequest) Validate

func (r *CreateArticleRequest) Validate() error

type DeleteArticleRequest

type DeleteArticleRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteArticleRequest) Descriptor deprecated

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

Deprecated: Use DeleteArticleRequest.ProtoReflect.Descriptor instead.

func (*DeleteArticleRequest) GetId added in v0.0.6

func (x *DeleteArticleRequest) GetId() string

func (*DeleteArticleRequest) ProtoMessage

func (*DeleteArticleRequest) ProtoMessage()

func (*DeleteArticleRequest) ProtoReflect

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

func (*DeleteArticleRequest) Reset

func (x *DeleteArticleRequest) Reset()

func (*DeleteArticleRequest) String

func (x *DeleteArticleRequest) String() string

type GetArticleByIdRequest added in v0.0.6

type GetArticleByIdRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetArticleByIdRequest) Descriptor deprecated added in v0.0.6

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

Deprecated: Use GetArticleByIdRequest.ProtoReflect.Descriptor instead.

func (*GetArticleByIdRequest) GetId added in v0.0.6

func (x *GetArticleByIdRequest) GetId() string

func (*GetArticleByIdRequest) ProtoMessage added in v0.0.6

func (*GetArticleByIdRequest) ProtoMessage()

func (*GetArticleByIdRequest) ProtoReflect added in v0.0.6

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

func (*GetArticleByIdRequest) Reset added in v0.0.6

func (x *GetArticleByIdRequest) Reset()

func (*GetArticleByIdRequest) String added in v0.0.6

func (x *GetArticleByIdRequest) String() string

type GetArticleBySlugRequest

type GetArticleBySlugRequest struct {
	Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	// contains filtered or unexported fields
}

func (*GetArticleBySlugRequest) Descriptor deprecated

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

Deprecated: Use GetArticleBySlugRequest.ProtoReflect.Descriptor instead.

func (*GetArticleBySlugRequest) GetSlug

func (x *GetArticleBySlugRequest) GetSlug() string

func (*GetArticleBySlugRequest) ProtoMessage

func (*GetArticleBySlugRequest) ProtoMessage()

func (*GetArticleBySlugRequest) ProtoReflect

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

func (*GetArticleBySlugRequest) Reset

func (x *GetArticleBySlugRequest) Reset()

func (*GetArticleBySlugRequest) String

func (x *GetArticleBySlugRequest) String() string

type ListAllArticleRequest

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

func (*ListAllArticleRequest) Descriptor deprecated

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

Deprecated: Use ListAllArticleRequest.ProtoReflect.Descriptor instead.

func (*ListAllArticleRequest) ProtoMessage

func (*ListAllArticleRequest) ProtoMessage()

func (*ListAllArticleRequest) ProtoReflect

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

func (*ListAllArticleRequest) Reset

func (x *ListAllArticleRequest) Reset()

func (*ListAllArticleRequest) String

func (x *ListAllArticleRequest) String() string

type ListAllArticleResponse

type ListAllArticleResponse struct {
	Rows []*Article `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAllArticleResponse) Descriptor deprecated

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

Deprecated: Use ListAllArticleResponse.ProtoReflect.Descriptor instead.

func (*ListAllArticleResponse) GetRows added in v0.0.5

func (x *ListAllArticleResponse) GetRows() []*Article

func (*ListAllArticleResponse) ProtoMessage

func (*ListAllArticleResponse) ProtoMessage()

func (*ListAllArticleResponse) ProtoReflect

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

func (*ListAllArticleResponse) Reset

func (x *ListAllArticleResponse) Reset()

func (*ListAllArticleResponse) String

func (x *ListAllArticleResponse) String() string

type ListArticleByAuthorRequest

type ListArticleByAuthorRequest struct {
	Limit  int32  `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int32  `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArticleByAuthorRequest) Descriptor deprecated

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

Deprecated: Use ListArticleByAuthorRequest.ProtoReflect.Descriptor instead.

func (*ListArticleByAuthorRequest) GetAuthor

func (x *ListArticleByAuthorRequest) GetAuthor() string

func (*ListArticleByAuthorRequest) GetLimit

func (x *ListArticleByAuthorRequest) GetLimit() int32

func (*ListArticleByAuthorRequest) GetOffset

func (x *ListArticleByAuthorRequest) GetOffset() int32

func (*ListArticleByAuthorRequest) ProtoMessage

func (*ListArticleByAuthorRequest) ProtoMessage()

func (*ListArticleByAuthorRequest) ProtoReflect

func (*ListArticleByAuthorRequest) Reset

func (x *ListArticleByAuthorRequest) Reset()

func (*ListArticleByAuthorRequest) String

func (x *ListArticleByAuthorRequest) String() string

type ListArticleByAuthorResponse

type ListArticleByAuthorResponse struct {
	Rows []*Article `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArticleByAuthorResponse) Descriptor deprecated

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

Deprecated: Use ListArticleByAuthorResponse.ProtoReflect.Descriptor instead.

func (*ListArticleByAuthorResponse) GetRows added in v0.0.5

func (x *ListArticleByAuthorResponse) GetRows() []*Article

func (*ListArticleByAuthorResponse) ProtoMessage

func (*ListArticleByAuthorResponse) ProtoMessage()

func (*ListArticleByAuthorResponse) ProtoReflect

func (*ListArticleByAuthorResponse) Reset

func (x *ListArticleByAuthorResponse) Reset()

func (*ListArticleByAuthorResponse) String

func (x *ListArticleByAuthorResponse) String() string

type ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest

type ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest struct {
	Limit          int32                  `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset         int32                  `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Author         string                 `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	IsFeatured     *bool                  `protobuf:"varint,4,opt,name=is_featured,json=isFeatured,proto3,oneof" json:"is_featured,omitempty"`
	MinPublishedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=min_published_at,json=minPublishedAt,proto3,oneof" json:"min_published_at,omitempty"`
	MaxPublishedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=max_published_at,json=maxPublishedAt,proto3,oneof" json:"max_published_at,omitempty"`
	Title          *string                `protobuf:"bytes,7,opt,name=title,proto3,oneof" json:"title,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) Descriptor deprecated

Deprecated: Use ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest.ProtoReflect.Descriptor instead.

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) GetAuthor

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) GetIsFeatured

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) GetLimit

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) GetMaxPublishedAt

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) GetMinPublishedAt

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) GetOffset

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) GetTitle

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) ProtoMessage

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) ProtoReflect

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) Reset

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleRequest) String

type ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse

type ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse struct {
	Rows      []*Article `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
	TotalSize int64      `protobuf:"varint,2,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse) Descriptor deprecated

Deprecated: Use ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse.ProtoReflect.Descriptor instead.

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse) GetRows added in v0.0.5

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse) GetTotalSize added in v0.0.5

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse) ProtoMessage

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse) ProtoReflect

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse) Reset

func (*ListArticleFilterByAuthorIsFeaturedPublishedAtTitleResponse) String

type UnimplementedArticleServiceHandler

type UnimplementedArticleServiceHandler struct{}

UnimplementedArticleServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedArticleServiceHandler) CreateArticle added in v0.0.5

func (UnimplementedArticleServiceHandler) DeleteArticle added in v0.0.5

func (UnimplementedArticleServiceHandler) GetArticleById added in v0.0.6

func (UnimplementedArticleServiceHandler) GetArticleBySlug added in v0.0.5

func (UnimplementedArticleServiceHandler) ListAllArticle added in v0.0.5

func (UnimplementedArticleServiceHandler) ListArticleByAuthor added in v0.0.5

func (UnimplementedArticleServiceHandler) UpdateArticle added in v0.0.5

type UpdateArticleRequest

type UpdateArticleRequest struct {

	// uuid primary key, generated on the server and not part of requests
	Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// Human/URL identifier, e.g. hello-world
	Slug           string                 `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	Title          string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Author         string                 `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
	Subtitle       *string                `protobuf:"bytes,5,opt,name=subtitle,proto3,oneof" json:"subtitle,omitempty"`
	ReadingMinutes *int32                 `protobuf:"varint,6,opt,name=reading_minutes,json=readingMinutes,proto3,oneof" json:"reading_minutes,omitempty"`
	LastViewedMs   *int64                 `protobuf:"varint,7,opt,name=last_viewed_ms,json=lastViewedMs,proto3,oneof" json:"last_viewed_ms,omitempty"`
	Rating         *float64               `protobuf:"fixed64,8,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
	CoverImage     []byte                 `protobuf:"bytes,9,opt,name=cover_image,json=coverImage,proto3,oneof" json:"cover_image,omitempty"`
	PublishedAt    *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=published_at,json=publishedAt,proto3,oneof" json:"published_at,omitempty"`
	// Free-form metadata, e.g. {"og_image":"/cover.png"}
	Metadata   *string `protobuf:"bytes,11,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"`
	IsFeatured *bool   `protobuf:"varint,12,opt,name=is_featured,json=isFeatured,proto3,oneof" json:"is_featured,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateArticleRequest) Descriptor deprecated

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

Deprecated: Use UpdateArticleRequest.ProtoReflect.Descriptor instead.

func (*UpdateArticleRequest) GetAuthor

func (x *UpdateArticleRequest) GetAuthor() string

func (*UpdateArticleRequest) GetCoverImage

func (x *UpdateArticleRequest) GetCoverImage() []byte

func (*UpdateArticleRequest) GetId added in v0.0.6

func (x *UpdateArticleRequest) GetId() string

func (*UpdateArticleRequest) GetIsFeatured

func (x *UpdateArticleRequest) GetIsFeatured() bool

func (*UpdateArticleRequest) GetLastViewedMs

func (x *UpdateArticleRequest) GetLastViewedMs() int64

func (*UpdateArticleRequest) GetMetadata

func (x *UpdateArticleRequest) GetMetadata() string

func (*UpdateArticleRequest) GetPublishedAt

func (x *UpdateArticleRequest) GetPublishedAt() *timestamppb.Timestamp

func (*UpdateArticleRequest) GetRating

func (x *UpdateArticleRequest) GetRating() float64

func (*UpdateArticleRequest) GetReadingMinutes

func (x *UpdateArticleRequest) GetReadingMinutes() int32

func (*UpdateArticleRequest) GetSlug

func (x *UpdateArticleRequest) GetSlug() string

func (*UpdateArticleRequest) GetSubtitle

func (x *UpdateArticleRequest) GetSubtitle() string

func (*UpdateArticleRequest) GetTitle

func (x *UpdateArticleRequest) GetTitle() string

func (*UpdateArticleRequest) ProtoMessage

func (*UpdateArticleRequest) ProtoMessage()

func (*UpdateArticleRequest) ProtoReflect

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

func (*UpdateArticleRequest) Reset

func (x *UpdateArticleRequest) Reset()

func (*UpdateArticleRequest) String

func (x *UpdateArticleRequest) String() string

func (*UpdateArticleRequest) Validate

func (r *UpdateArticleRequest) Validate() error

type ValidateInterceptor

type ValidateInterceptor struct{}

ValidateInterceptor calls the generated Validate() method on any request message that implements it

func NewValidateInterceptor

func NewValidateInterceptor() *ValidateInterceptor

func (*ValidateInterceptor) WrapStreamingClient

WrapStreamingClient implements connect.Interceptor.

func (*ValidateInterceptor) WrapStreamingHandler

WrapStreamingHandler implements connect.Interceptor.

func (*ValidateInterceptor) WrapUnary

WrapUnary implements connect.Interceptor.

Jump to

Keyboard shortcuts

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