pb

package
v0.0.0-...-776a9bf Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	UploadStatusCode_name = map[int32]string{
		0: "Unknown",
		1: "Ok",
		2: "Failed",
	}
	UploadStatusCode_value = map[string]int32{
		"Unknown": 0,
		"Ok":      1,
		"Failed":  2,
	}
)

Enum value maps for UploadStatusCode.

View Source
var File_comment_message_proto protoreflect.FileDescriptor
View Source
var File_story_message_proto protoreflect.FileDescriptor
View Source
var File_story_service_proto protoreflect.FileDescriptor
View Source
var StoryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "StoryService",
	HandlerType: (*StoryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PingPong",
			Handler:    _StoryService_PingPong_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "UploadStoryAndFiles",
			Handler:       _StoryService_UploadStoryAndFiles_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "story_service.proto",
}

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

Functions

func RegisterStoryServiceHandler

func RegisterStoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterStoryServiceHandler registers the http handlers for service StoryService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterStoryServiceHandlerClient

func RegisterStoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StoryServiceClient) error

RegisterStoryServiceHandlerClient registers the http handlers for service StoryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "StoryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "StoryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "StoryServiceClient" to call the correct interceptors.

func RegisterStoryServiceHandlerFromEndpoint

func RegisterStoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterStoryServiceHandlerFromEndpoint is same as RegisterStoryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterStoryServiceHandlerServer

func RegisterStoryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StoryServiceServer) error

RegisterStoryServiceHandlerServer registers the http handlers for service StoryService to "mux". UnaryRPC :call StoryServiceServer 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 RegisterStoryServiceHandlerFromEndpoint instead.

func RegisterStoryServiceServer

func RegisterStoryServiceServer(s grpc.ServiceRegistrar, srv StoryServiceServer)

Types

type CommentCreateRequest

type CommentCreateRequest struct {

	// UUID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Story UUID
	StoryId string `protobuf:"bytes,2,opt,name=storyId,proto3" json:"storyId,omitempty"`
	// comment content
	TextContent string `protobuf:"bytes,3,opt,name=textContent,proto3" json:"textContent,omitempty"`
	// Commented by
	Commentator string `protobuf:"bytes,4,opt,name=commentator,proto3" json:"commentator,omitempty"`
	// Create time
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentCreateRequest) Descriptor deprecated

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

Deprecated: Use CommentCreateRequest.ProtoReflect.Descriptor instead.

func (*CommentCreateRequest) GetCommentator

func (x *CommentCreateRequest) GetCommentator() string

func (*CommentCreateRequest) GetCreateTime

func (x *CommentCreateRequest) GetCreateTime() *timestamppb.Timestamp

func (*CommentCreateRequest) GetId

func (x *CommentCreateRequest) GetId() string

func (*CommentCreateRequest) GetStoryId

func (x *CommentCreateRequest) GetStoryId() string

func (*CommentCreateRequest) GetTextContent

func (x *CommentCreateRequest) GetTextContent() string

func (*CommentCreateRequest) ProtoMessage

func (*CommentCreateRequest) ProtoMessage()

func (*CommentCreateRequest) ProtoReflect

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

func (*CommentCreateRequest) Reset

func (x *CommentCreateRequest) Reset()

func (*CommentCreateRequest) String

func (x *CommentCreateRequest) String() string

type CommentCreateResponse

type CommentCreateResponse struct {

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

func (*CommentCreateResponse) Descriptor deprecated

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

Deprecated: Use CommentCreateResponse.ProtoReflect.Descriptor instead.

func (*CommentCreateResponse) GetId

func (x *CommentCreateResponse) GetId() string

func (*CommentCreateResponse) ProtoMessage

func (*CommentCreateResponse) ProtoMessage()

func (*CommentCreateResponse) ProtoReflect

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

func (*CommentCreateResponse) Reset

func (x *CommentCreateResponse) Reset()

func (*CommentCreateResponse) String

func (x *CommentCreateResponse) String() string

type CreateStoryRequest

type CreateStoryRequest struct {
	Story *Story `protobuf:"bytes,1,opt,name=story,proto3" json:"story,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateStoryRequest) Descriptor deprecated

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

Deprecated: Use CreateStoryRequest.ProtoReflect.Descriptor instead.

func (*CreateStoryRequest) GetStory

func (x *CreateStoryRequest) GetStory() *Story

func (*CreateStoryRequest) ProtoMessage

func (*CreateStoryRequest) ProtoMessage()

func (*CreateStoryRequest) ProtoReflect

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

func (*CreateStoryRequest) Reset

func (x *CreateStoryRequest) Reset()

func (*CreateStoryRequest) String

func (x *CreateStoryRequest) String() string

type CreateStoryResponse

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

func (*CreateStoryResponse) Descriptor deprecated

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

Deprecated: Use CreateStoryResponse.ProtoReflect.Descriptor instead.

func (*CreateStoryResponse) GetId

func (x *CreateStoryResponse) GetId() string

func (*CreateStoryResponse) ProtoMessage

func (*CreateStoryResponse) ProtoMessage()

func (*CreateStoryResponse) ProtoReflect

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

func (*CreateStoryResponse) Reset

func (x *CreateStoryResponse) Reset()

func (*CreateStoryResponse) String

func (x *CreateStoryResponse) String() string

type FileHeader

type FileHeader struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	FileSize *int64 `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3,oneof" json:"file_size,omitempty"`
	// contains filtered or unexported fields
}

func (*FileHeader) Descriptor deprecated

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

Deprecated: Use FileHeader.ProtoReflect.Descriptor instead.

func (*FileHeader) GetFileSize

func (x *FileHeader) GetFileSize() int64

func (*FileHeader) GetName

func (x *FileHeader) GetName() string

func (*FileHeader) ProtoMessage

func (*FileHeader) ProtoMessage()

func (*FileHeader) ProtoReflect

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

func (*FileHeader) Reset

func (x *FileHeader) Reset()

func (*FileHeader) String

func (x *FileHeader) String() string

type GetLatestStoryRequest

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

func (*GetLatestStoryRequest) Descriptor deprecated

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

Deprecated: Use GetLatestStoryRequest.ProtoReflect.Descriptor instead.

func (*GetLatestStoryRequest) ProtoMessage

func (*GetLatestStoryRequest) ProtoMessage()

func (*GetLatestStoryRequest) ProtoReflect

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

func (*GetLatestStoryRequest) Reset

func (x *GetLatestStoryRequest) Reset()

func (*GetLatestStoryRequest) String

func (x *GetLatestStoryRequest) String() string

type GetLatestStoryResponse

type GetLatestStoryResponse struct {
	Story *Story `protobuf:"bytes,1,opt,name=story,proto3" json:"story,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLatestStoryResponse) Descriptor deprecated

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

Deprecated: Use GetLatestStoryResponse.ProtoReflect.Descriptor instead.

func (*GetLatestStoryResponse) GetStory

func (x *GetLatestStoryResponse) GetStory() *Story

func (*GetLatestStoryResponse) ProtoMessage

func (*GetLatestStoryResponse) ProtoMessage()

func (*GetLatestStoryResponse) ProtoReflect

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

func (*GetLatestStoryResponse) Reset

func (x *GetLatestStoryResponse) Reset()

func (*GetLatestStoryResponse) String

func (x *GetLatestStoryResponse) String() string

type Ping

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

func (*Ping) Descriptor deprecated

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

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetPing

func (x *Ping) GetPing() string

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

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

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

type Pong

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

func (*Pong) Descriptor deprecated

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

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetPing

func (x *Pong) GetPing() string

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

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

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

type Story

type Story struct {

	// UUID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Title of the story
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Text contents
	TextContent string `protobuf:"bytes,3,opt,name=textContent,proto3" json:"textContent,omitempty"`
	// Story can have multiple images and videos
	FileContent [][]byte `protobuf:"bytes,4,rep,name=fileContent,proto3" json:"fileContent,omitempty"`
	// Story can have formatted texts, like code
	FormattedText []string `protobuf:"bytes,5,rep,name=formattedText,proto3" json:"formattedText,omitempty"`
	// Name of the author
	WrittenBy string `protobuf:"bytes,6,opt,name=WrittenBy,proto3" json:"WrittenBy,omitempty"`
	// Is the story draft and not published
	IsDraft bool `protobuf:"varint,7,opt,name=isDraft,proto3" json:"isDraft,omitempty"`
	// Tags for categorizing stories
	Tag []*Tag `protobuf:"bytes,8,rep,name=Tag,proto3" json:"Tag,omitempty"`
	// Create time
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// Update time
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	// contains filtered or unexported fields
}

func (*Story) Descriptor deprecated

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

Deprecated: Use Story.ProtoReflect.Descriptor instead.

func (*Story) GetCreateTime

func (x *Story) GetCreateTime() *timestamppb.Timestamp

func (*Story) GetFileContent

func (x *Story) GetFileContent() [][]byte

func (*Story) GetFormattedText

func (x *Story) GetFormattedText() []string

func (*Story) GetId

func (x *Story) GetId() string

func (*Story) GetIsDraft

func (x *Story) GetIsDraft() bool

func (*Story) GetTag

func (x *Story) GetTag() []*Tag

func (*Story) GetTextContent

func (x *Story) GetTextContent() string

func (*Story) GetTitle

func (x *Story) GetTitle() string

func (*Story) GetUpdateTime

func (x *Story) GetUpdateTime() *timestamppb.Timestamp

func (*Story) GetWrittenBy

func (x *Story) GetWrittenBy() string

func (*Story) ProtoMessage

func (*Story) ProtoMessage()

func (*Story) ProtoReflect

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

func (*Story) Reset

func (x *Story) Reset()

func (*Story) String

func (x *Story) String() string

type StoryDelete

type StoryDelete struct {

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

func (*StoryDelete) Descriptor deprecated

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

Deprecated: Use StoryDelete.ProtoReflect.Descriptor instead.

func (*StoryDelete) GetId

func (x *StoryDelete) GetId() string

func (*StoryDelete) ProtoMessage

func (*StoryDelete) ProtoMessage()

func (*StoryDelete) ProtoReflect

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

func (*StoryDelete) Reset

func (x *StoryDelete) Reset()

func (*StoryDelete) String

func (x *StoryDelete) String() string

type StoryGetRequest

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

func (*StoryGetRequest) Descriptor deprecated

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

Deprecated: Use StoryGetRequest.ProtoReflect.Descriptor instead.

func (*StoryGetRequest) ProtoMessage

func (*StoryGetRequest) ProtoMessage()

func (*StoryGetRequest) ProtoReflect

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

func (*StoryGetRequest) Reset

func (x *StoryGetRequest) Reset()

func (*StoryGetRequest) String

func (x *StoryGetRequest) String() string

type StoryGetResponse

type StoryGetResponse struct {

	// Story will be streamed
	Top *Story `protobuf:"bytes,1,opt,name=top,proto3" json:"top,omitempty"`
	// contains filtered or unexported fields
}

func (*StoryGetResponse) Descriptor deprecated

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

Deprecated: Use StoryGetResponse.ProtoReflect.Descriptor instead.

func (*StoryGetResponse) GetTop

func (x *StoryGetResponse) GetTop() *Story

func (*StoryGetResponse) ProtoMessage

func (*StoryGetResponse) ProtoMessage()

func (*StoryGetResponse) ProtoReflect

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

func (*StoryGetResponse) Reset

func (x *StoryGetResponse) Reset()

func (*StoryGetResponse) String

func (x *StoryGetResponse) String() string

type StoryRequest

type StoryRequest struct {

	// Types that are assignable to Data:
	//	*StoryRequest_Info
	//	*StoryRequest_ChunkData
	Data isStoryRequest_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*StoryRequest) Descriptor deprecated

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

Deprecated: Use StoryRequest.ProtoReflect.Descriptor instead.

func (*StoryRequest) GetChunkData

func (x *StoryRequest) GetChunkData() []byte

func (*StoryRequest) GetData

func (m *StoryRequest) GetData() isStoryRequest_Data

func (*StoryRequest) GetInfo

func (x *StoryRequest) GetInfo() *FileHeader

func (*StoryRequest) ProtoMessage

func (*StoryRequest) ProtoMessage()

func (*StoryRequest) ProtoReflect

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

func (*StoryRequest) Reset

func (x *StoryRequest) Reset()

func (*StoryRequest) String

func (x *StoryRequest) String() string

type StoryRequest_ChunkData

type StoryRequest_ChunkData struct {
	ChunkData []byte `protobuf:"bytes,2,opt,name=chunk_data,json=chunkData,proto3,oneof"`
}

type StoryRequest_Info

type StoryRequest_Info struct {
	Info *FileHeader `protobuf:"bytes,1,opt,name=info,proto3,oneof"`
}

type StoryResponse

type StoryResponse struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*StoryResponse) Descriptor deprecated

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

Deprecated: Use StoryResponse.ProtoReflect.Descriptor instead.

func (*StoryResponse) GetId

func (x *StoryResponse) GetId() string

func (*StoryResponse) GetSize

func (x *StoryResponse) GetSize() uint32

func (*StoryResponse) ProtoMessage

func (*StoryResponse) ProtoMessage()

func (*StoryResponse) ProtoReflect

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

func (*StoryResponse) Reset

func (x *StoryResponse) Reset()

func (*StoryResponse) String

func (x *StoryResponse) String() string

type StoryServiceClient

type StoryServiceClient interface {
	PingPong(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error)
	UploadStoryAndFiles(ctx context.Context, opts ...grpc.CallOption) (StoryService_UploadStoryAndFilesClient, error)
}

StoryServiceClient is the client API for StoryService 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 StoryServiceServer

type StoryServiceServer interface {
	PingPong(context.Context, *Ping) (*Pong, error)
	UploadStoryAndFiles(StoryService_UploadStoryAndFilesServer) error
	// contains filtered or unexported methods
}

StoryServiceServer is the server API for StoryService service. All implementations must embed UnimplementedStoryServiceServer for forward compatibility

type StoryService_UploadStoryAndFilesClient

type StoryService_UploadStoryAndFilesClient interface {
	Send(*UploadStoryAndFilesReq) error
	CloseAndRecv() (*UploadStoryAndFilesRes, error)
	grpc.ClientStream
}

type StoryService_UploadStoryAndFilesServer

type StoryService_UploadStoryAndFilesServer interface {
	SendAndClose(*UploadStoryAndFilesRes) error
	Recv() (*UploadStoryAndFilesReq, error)
	grpc.ServerStream
}

type Tag

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

func (*Tag) Descriptor deprecated

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetTagName

func (x *Tag) GetTagName() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type UnimplementedStoryServiceServer

type UnimplementedStoryServiceServer struct {
}

UnimplementedStoryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStoryServiceServer) PingPong

func (UnimplementedStoryServiceServer) UploadStoryAndFiles

type UnsafeStoryServiceServer

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

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

type UpdateStoryRequest

type UpdateStoryRequest struct {

	// UUID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Title of the story
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Text contents
	TextContent string `protobuf:"bytes,3,opt,name=textContent,proto3" json:"textContent,omitempty"`
	// Update time
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateStoryRequest) Descriptor deprecated

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

Deprecated: Use UpdateStoryRequest.ProtoReflect.Descriptor instead.

func (*UpdateStoryRequest) GetId

func (x *UpdateStoryRequest) GetId() string

func (*UpdateStoryRequest) GetTextContent

func (x *UpdateStoryRequest) GetTextContent() string

func (*UpdateStoryRequest) GetTitle

func (x *UpdateStoryRequest) GetTitle() string

func (*UpdateStoryRequest) GetUpdateTime

func (x *UpdateStoryRequest) GetUpdateTime() *timestamppb.Timestamp

func (*UpdateStoryRequest) ProtoMessage

func (*UpdateStoryRequest) ProtoMessage()

func (*UpdateStoryRequest) ProtoReflect

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

func (*UpdateStoryRequest) Reset

func (x *UpdateStoryRequest) Reset()

func (*UpdateStoryRequest) String

func (x *UpdateStoryRequest) String() string

type UpdateStoryResponse

type UpdateStoryResponse struct {

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

func (*UpdateStoryResponse) Descriptor deprecated

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

Deprecated: Use UpdateStoryResponse.ProtoReflect.Descriptor instead.

func (*UpdateStoryResponse) GetId

func (x *UpdateStoryResponse) GetId() string

func (*UpdateStoryResponse) ProtoMessage

func (*UpdateStoryResponse) ProtoMessage()

func (*UpdateStoryResponse) ProtoReflect

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

func (*UpdateStoryResponse) Reset

func (x *UpdateStoryResponse) Reset()

func (*UpdateStoryResponse) String

func (x *UpdateStoryResponse) String() string

type UploadStatusCode

type UploadStatusCode int32
const (
	UploadStatusCode_Unknown UploadStatusCode = 0
	UploadStatusCode_Ok      UploadStatusCode = 1
	UploadStatusCode_Failed  UploadStatusCode = 2
)

func (UploadStatusCode) Descriptor

func (UploadStatusCode) Enum

func (UploadStatusCode) EnumDescriptor deprecated

func (UploadStatusCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use UploadStatusCode.Descriptor instead.

func (UploadStatusCode) Number

func (UploadStatusCode) String

func (x UploadStatusCode) String() string

func (UploadStatusCode) Type

type UploadStoryAndFilesReq

type UploadStoryAndFilesReq struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title    string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content  []byte `protobuf:"bytes,3,opt,name=Content,proto3" json:"Content,omitempty"`
	Filename string `protobuf:"bytes,4,opt,name=Filename,proto3" json:"Filename,omitempty"`
	Author   string `protobuf:"bytes,5,opt,name=Author,proto3" json:"Author,omitempty"`
	IsDraft  bool   `protobuf:"varint,7,opt,name=isDraft,proto3" json:"isDraft,omitempty"`
	// Tags for categorizing stories
	Tag []*Tag `protobuf:"bytes,8,rep,name=Tag,proto3" json:"Tag,omitempty"`
	// Create time
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// Update time
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadStoryAndFilesReq) Descriptor deprecated

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

Deprecated: Use UploadStoryAndFilesReq.ProtoReflect.Descriptor instead.

func (*UploadStoryAndFilesReq) GetAuthor

func (x *UploadStoryAndFilesReq) GetAuthor() string

func (*UploadStoryAndFilesReq) GetContent

func (x *UploadStoryAndFilesReq) GetContent() []byte

func (*UploadStoryAndFilesReq) GetCreateTime

func (x *UploadStoryAndFilesReq) GetCreateTime() *timestamppb.Timestamp

func (*UploadStoryAndFilesReq) GetFilename

func (x *UploadStoryAndFilesReq) GetFilename() string

func (*UploadStoryAndFilesReq) GetId

func (x *UploadStoryAndFilesReq) GetId() string

func (*UploadStoryAndFilesReq) GetIsDraft

func (x *UploadStoryAndFilesReq) GetIsDraft() bool

func (*UploadStoryAndFilesReq) GetTag

func (x *UploadStoryAndFilesReq) GetTag() []*Tag

func (*UploadStoryAndFilesReq) GetTitle

func (x *UploadStoryAndFilesReq) GetTitle() string

func (*UploadStoryAndFilesReq) GetUpdateTime

func (x *UploadStoryAndFilesReq) GetUpdateTime() *timestamppb.Timestamp

func (*UploadStoryAndFilesReq) ProtoMessage

func (*UploadStoryAndFilesReq) ProtoMessage()

func (*UploadStoryAndFilesReq) ProtoReflect

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

func (*UploadStoryAndFilesReq) Reset

func (x *UploadStoryAndFilesReq) Reset()

func (*UploadStoryAndFilesReq) String

func (x *UploadStoryAndFilesReq) String() string

type UploadStoryAndFilesRes

type UploadStoryAndFilesRes struct {
	Message string           `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	Code    UploadStatusCode `protobuf:"varint,2,opt,name=Code,proto3,enum=UploadStatusCode" json:"Code,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadStoryAndFilesRes) Descriptor deprecated

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

Deprecated: Use UploadStoryAndFilesRes.ProtoReflect.Descriptor instead.

func (*UploadStoryAndFilesRes) GetCode

func (*UploadStoryAndFilesRes) GetMessage

func (x *UploadStoryAndFilesRes) GetMessage() string

func (*UploadStoryAndFilesRes) ProtoMessage

func (*UploadStoryAndFilesRes) ProtoMessage()

func (*UploadStoryAndFilesRes) ProtoReflect

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

func (*UploadStoryAndFilesRes) Reset

func (x *UploadStoryAndFilesRes) Reset()

func (*UploadStoryAndFilesRes) String

func (x *UploadStoryAndFilesRes) String() string

Jump to

Keyboard shortcuts

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