Documentation ¶
Index ¶
- Variables
- func RegisterCommentingServer(s grpc.ServiceRegistrar, srv CommentingServer)
- func RegisterManageInstanceServer(s grpc.ServiceRegistrar, srv ManageInstanceServer)
- func RegisterPageServer(s grpc.ServiceRegistrar, srv PageServer)
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetContent() string
- func (x *Comment) GetId() uint64
- func (x *Comment) GetOuterIdentifier() string
- func (x *Comment) GetReplyToId() uint64
- func (x *Comment) GetUserId() uint64
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentingClient
- type CommentingServer
- type Instance
- func (*Instance) Descriptor() ([]byte, []int)deprecated
- func (x *Instance) GetId() int64
- func (x *Instance) GetTitle() string
- func (x *Instance) GetType() string
- func (*Instance) ProtoMessage()
- func (x *Instance) ProtoReflect() protoreflect.Message
- func (x *Instance) Reset()
- func (x *Instance) String() string
- type Instances
- type ManageInstanceClient
- type ManageInstanceServer
- type PageClient
- type PageServer
- type Project
- type Result
- type SuperPage
- func (*SuperPage) Descriptor() ([]byte, []int)deprecated
- func (x *SuperPage) GetBody() string
- func (x *SuperPage) GetChatId() int64
- func (x *SuperPage) GetEditOriginals() bool
- func (x *SuperPage) GetId() int64
- func (x *SuperPage) GetJustEdit() bool
- func (x *SuperPage) GetReferenceOriginal() bool
- func (*SuperPage) ProtoMessage()
- func (x *SuperPage) ProtoReflect() protoreflect.Message
- func (x *SuperPage) Reset()
- func (x *SuperPage) String() string
- type Token
- type UnimplementedCommentingServer
- type UnimplementedManageInstanceServer
- func (UnimplementedManageInstanceServer) InstanceDetail(context.Context, *Instance) (*Instance, error)
- func (UnimplementedManageInstanceServer) InstanceList(context.Context, *Project) (*Instances, error)
- func (UnimplementedManageInstanceServer) ValidateToken(context.Context, *Token) (*Project, error)
- type UnimplementedPageServer
- type UnsafeCommentingServer
- type UnsafeManageInstanceServer
- type UnsafePageServer
Constants ¶
This section is empty.
Variables ¶
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)
var File_protos_comments_proto protoreflect.FileDescriptor
var File_protos_webpage_proto protoreflect.FileDescriptor
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)
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) GetContent ¶
func (*Comment) GetOuterIdentifier ¶
func (*Comment) GetReplyToId ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Instance) ProtoMessage()
func (*Instance) ProtoReflect ¶
func (x *Instance) ProtoReflect() protoreflect.Message
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) GetInstances ¶
func (*Instances) ProtoMessage ¶
func (*Instances) ProtoMessage()
func (*Instances) ProtoReflect ¶
func (x *Instances) ProtoReflect() protoreflect.Message
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.
func NewManageInstanceClient ¶
func NewManageInstanceClient(cc grpc.ClientConnInterface) ManageInstanceClient
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) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
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) GetMessage ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
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) GetEditOriginals ¶
func (*SuperPage) GetJustEdit ¶
func (*SuperPage) GetReferenceOriginal ¶
func (*SuperPage) ProtoMessage ¶
func (*SuperPage) ProtoMessage()
func (*SuperPage) ProtoReflect ¶
func (x *SuperPage) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedCommentingServer ¶
type UnimplementedCommentingServer struct { }
UnimplementedCommentingServer must be embedded to have forward compatible implementations.
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 ¶
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.