say_protos

package module
v0.0.0-...-cd7f742 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commenting_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Commenting",
	HandlerType: (*CommentingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Post",
			Handler:    _Commenting_Post_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/comments.proto",
}

Commenting_ServiceDesc is the grpc.ServiceDesc for Commenting 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_protos_comments_proto protoreflect.FileDescriptor
View Source
var File_protos_webpage_proto protoreflect.FileDescriptor
View Source
var ManageInstance_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "webpage.ManageInstance",
	HandlerType: (*ManageInstanceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ValidateToken",
			Handler:    _ManageInstance_ValidateToken_Handler,
		},
		{
			MethodName: "InstanceList",
			Handler:    _ManageInstance_InstanceList_Handler,
		},
		{
			MethodName: "InstanceDetail",
			Handler:    _ManageInstance_InstanceDetail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/webpage.proto",
}

ManageInstance_ServiceDesc is the grpc.ServiceDesc for ManageInstance 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 Page_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "webpage.Page",
	HandlerType: (*PageServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PublishSuperPage",
			Handler:    _Page_PublishSuperPage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/webpage.proto",
}

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

Functions

func RegisterCommentingServer

func RegisterCommentingServer(s grpc.ServiceRegistrar, srv CommentingServer)

func RegisterManageInstanceServer

func RegisterManageInstanceServer(s grpc.ServiceRegistrar, srv ManageInstanceServer)

func RegisterPageServer

func RegisterPageServer(s grpc.ServiceRegistrar, srv PageServer)

Types

type Comment

type Comment struct {
	Id              uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	OuterIdentifier string `protobuf:"bytes,5,opt,name=outer_identifier,json=outerIdentifier,proto3" json:"outer_identifier,omitempty"`
	UserId          uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ReplyToId       uint64 `protobuf:"varint,3,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"`
	Content         string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Comment) Descriptor deprecated

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetId

func (x *Comment) GetId() uint64

func (*Comment) GetOuterIdentifier

func (x *Comment) GetOuterIdentifier() string

func (*Comment) GetReplyToId

func (x *Comment) GetReplyToId() uint64

func (*Comment) GetUserId

func (x *Comment) GetUserId() uint64

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

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

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

type CommentingClient

type CommentingClient interface {
	Post(ctx context.Context, in *Comment, opts ...grpc.CallOption) (*Comment, error)
}

CommentingClient is the client API for Commenting 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 NewCommentingClient

func NewCommentingClient(cc grpc.ClientConnInterface) CommentingClient

type CommentingServer

type CommentingServer interface {
	Post(context.Context, *Comment) (*Comment, error)
	// contains filtered or unexported methods
}

CommentingServer is the server API for Commenting service. All implementations must embed UnimplementedCommentingServer for forward compatibility

type Instance

type Instance struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Type  string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Instance) Descriptor deprecated

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

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetId

func (x *Instance) GetId() int64

func (*Instance) GetTitle

func (x *Instance) GetTitle() string

func (*Instance) GetType

func (x *Instance) GetType() string

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

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

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type Instances

type Instances struct {
	Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
	// contains filtered or unexported fields
}

func (*Instances) Descriptor deprecated

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

Deprecated: Use Instances.ProtoReflect.Descriptor instead.

func (*Instances) GetInstances

func (x *Instances) GetInstances() []*Instance

func (*Instances) ProtoMessage

func (*Instances) ProtoMessage()

func (*Instances) ProtoReflect

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

func (*Instances) Reset

func (x *Instances) Reset()

func (*Instances) String

func (x *Instances) String() string

type ManageInstanceClient

type ManageInstanceClient interface {
	ValidateToken(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Project, error)
	InstanceList(ctx context.Context, in *Project, opts ...grpc.CallOption) (*Instances, error)
	InstanceDetail(ctx context.Context, in *Instance, opts ...grpc.CallOption) (*Instance, error)
}

ManageInstanceClient is the client API for ManageInstance 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 ManageInstanceServer

type ManageInstanceServer interface {
	ValidateToken(context.Context, *Token) (*Project, error)
	InstanceList(context.Context, *Project) (*Instances, error)
	InstanceDetail(context.Context, *Instance) (*Instance, error)
	// contains filtered or unexported methods
}

ManageInstanceServer is the server API for ManageInstance service. All implementations must embed UnimplementedManageInstanceServer for forward compatibility

type PageClient

type PageClient interface {
	PublishSuperPage(ctx context.Context, in *SuperPage, opts ...grpc.CallOption) (*Result, error)
}

PageClient is the client API for Page 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 NewPageClient

func NewPageClient(cc grpc.ClientConnInterface) PageClient

type PageServer

type PageServer interface {
	PublishSuperPage(context.Context, *SuperPage) (*Result, error)
	// contains filtered or unexported methods
}

PageServer is the server API for Page service. All implementations must embed UnimplementedPageServer for forward compatibility

type Project

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

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetId

func (x *Project) GetId() int64

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type Result

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

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetMessage

func (x *Result) GetMessage() string

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type SuperPage

type SuperPage struct {
	ChatId            int64  `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	Id                int64  `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Body              string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	EditOriginals     bool   `protobuf:"varint,4,opt,name=edit_originals,json=editOriginals,proto3" json:"edit_originals,omitempty"`
	ReferenceOriginal bool   `protobuf:"varint,5,opt,name=reference_original,json=referenceOriginal,proto3" json:"reference_original,omitempty"`
	JustEdit          bool   `protobuf:"varint,6,opt,name=just_edit,json=justEdit,proto3" json:"just_edit,omitempty"`
	// contains filtered or unexported fields
}

func (*SuperPage) Descriptor deprecated

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

Deprecated: Use SuperPage.ProtoReflect.Descriptor instead.

func (*SuperPage) GetBody

func (x *SuperPage) GetBody() string

func (*SuperPage) GetChatId

func (x *SuperPage) GetChatId() int64

func (*SuperPage) GetEditOriginals

func (x *SuperPage) GetEditOriginals() bool

func (*SuperPage) GetId

func (x *SuperPage) GetId() int64

func (*SuperPage) GetJustEdit

func (x *SuperPage) GetJustEdit() bool

func (*SuperPage) GetReferenceOriginal

func (x *SuperPage) GetReferenceOriginal() bool

func (*SuperPage) ProtoMessage

func (*SuperPage) ProtoMessage()

func (*SuperPage) ProtoReflect

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

func (*SuperPage) Reset

func (x *SuperPage) Reset()

func (*SuperPage) String

func (x *SuperPage) String() string

type Token

type Token struct {
	Token  string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Commit bool   `protobuf:"varint,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetCommit

func (x *Token) GetCommit() bool

func (*Token) GetToken

func (x *Token) GetToken() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedCommentingServer

type UnimplementedCommentingServer struct {
}

UnimplementedCommentingServer must be embedded to have forward compatible implementations.

func (UnimplementedCommentingServer) Post

type UnimplementedManageInstanceServer

type UnimplementedManageInstanceServer struct {
}

UnimplementedManageInstanceServer must be embedded to have forward compatible implementations.

func (UnimplementedManageInstanceServer) InstanceDetail

func (UnimplementedManageInstanceServer) InstanceList

func (UnimplementedManageInstanceServer) ValidateToken

type UnimplementedPageServer

type UnimplementedPageServer struct {
}

UnimplementedPageServer must be embedded to have forward compatible implementations.

func (UnimplementedPageServer) PublishSuperPage

func (UnimplementedPageServer) PublishSuperPage(context.Context, *SuperPage) (*Result, error)

type UnsafeCommentingServer

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

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

type UnsafeManageInstanceServer

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

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

type UnsafePageServer

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

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

Jump to

Keyboard shortcuts

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