Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterWikiServiceServer(s grpc.ServiceRegistrar, srv WikiServiceServer)
- type CreatePageRequest
- func (*CreatePageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePageRequest) GetPage() *wiki.Page
- func (*CreatePageRequest) ProtoMessage()
- func (x *CreatePageRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePageRequest) Reset()
- func (m *CreatePageRequest) Sanitize() error
- func (x *CreatePageRequest) String() string
- func (m *CreatePageRequest) Validate() error
- func (m *CreatePageRequest) ValidateAll() error
- type CreatePageRequestMultiError
- type CreatePageRequestValidationError
- func (e CreatePageRequestValidationError) Cause() error
- func (e CreatePageRequestValidationError) Error() string
- func (e CreatePageRequestValidationError) ErrorName() string
- func (e CreatePageRequestValidationError) Field() string
- func (e CreatePageRequestValidationError) Key() bool
- func (e CreatePageRequestValidationError) Reason() string
- type CreatePageResponse
- func (*CreatePageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePageResponse) GetPage() *wiki.Page
- func (*CreatePageResponse) ProtoMessage()
- func (x *CreatePageResponse) ProtoReflect() protoreflect.Message
- func (x *CreatePageResponse) Reset()
- func (m *CreatePageResponse) Sanitize() error
- func (x *CreatePageResponse) String() string
- func (m *CreatePageResponse) Validate() error
- func (m *CreatePageResponse) ValidateAll() error
- type CreatePageResponseMultiError
- type CreatePageResponseValidationError
- func (e CreatePageResponseValidationError) Cause() error
- func (e CreatePageResponseValidationError) Error() string
- func (e CreatePageResponseValidationError) ErrorName() string
- func (e CreatePageResponseValidationError) Field() string
- func (e CreatePageResponseValidationError) Key() bool
- func (e CreatePageResponseValidationError) Reason() string
- type DeletePageRequest
- func (*DeletePageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePageRequest) GetId() uint64
- func (*DeletePageRequest) ProtoMessage()
- func (x *DeletePageRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePageRequest) Reset()
- func (m *DeletePageRequest) Sanitize() error
- func (x *DeletePageRequest) String() string
- func (m *DeletePageRequest) Validate() error
- func (m *DeletePageRequest) ValidateAll() error
- type DeletePageRequestMultiError
- type DeletePageRequestValidationError
- func (e DeletePageRequestValidationError) Cause() error
- func (e DeletePageRequestValidationError) Error() string
- func (e DeletePageRequestValidationError) ErrorName() string
- func (e DeletePageRequestValidationError) Field() string
- func (e DeletePageRequestValidationError) Key() bool
- func (e DeletePageRequestValidationError) Reason() string
- type DeletePageResponse
- func (*DeletePageResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeletePageResponse) ProtoMessage()
- func (x *DeletePageResponse) ProtoReflect() protoreflect.Message
- func (x *DeletePageResponse) Reset()
- func (m *DeletePageResponse) Sanitize() error
- func (x *DeletePageResponse) String() string
- func (m *DeletePageResponse) Validate() error
- func (m *DeletePageResponse) ValidateAll() error
- type DeletePageResponseMultiError
- type DeletePageResponseValidationError
- func (e DeletePageResponseValidationError) Cause() error
- func (e DeletePageResponseValidationError) Error() string
- func (e DeletePageResponseValidationError) ErrorName() string
- func (e DeletePageResponseValidationError) Field() string
- func (e DeletePageResponseValidationError) Key() bool
- func (e DeletePageResponseValidationError) Reason() string
- type GetPageRequest
- func (*GetPageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPageRequest) GetId() uint64
- func (*GetPageRequest) ProtoMessage()
- func (x *GetPageRequest) ProtoReflect() protoreflect.Message
- func (x *GetPageRequest) Reset()
- func (m *GetPageRequest) Sanitize() error
- func (x *GetPageRequest) String() string
- func (m *GetPageRequest) Validate() error
- func (m *GetPageRequest) ValidateAll() error
- type GetPageRequestMultiError
- type GetPageRequestValidationError
- func (e GetPageRequestValidationError) Cause() error
- func (e GetPageRequestValidationError) Error() string
- func (e GetPageRequestValidationError) ErrorName() string
- func (e GetPageRequestValidationError) Field() string
- func (e GetPageRequestValidationError) Key() bool
- func (e GetPageRequestValidationError) Reason() string
- type GetPageResponse
- func (*GetPageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPageResponse) GetPage() *wiki.Page
- func (*GetPageResponse) ProtoMessage()
- func (x *GetPageResponse) ProtoReflect() protoreflect.Message
- func (x *GetPageResponse) Reset()
- func (m *GetPageResponse) Sanitize() error
- func (x *GetPageResponse) String() string
- func (m *GetPageResponse) Validate() error
- func (m *GetPageResponse) ValidateAll() error
- type GetPageResponseMultiError
- type GetPageResponseValidationError
- func (e GetPageResponseValidationError) Cause() error
- func (e GetPageResponseValidationError) Error() string
- func (e GetPageResponseValidationError) ErrorName() string
- func (e GetPageResponseValidationError) Field() string
- func (e GetPageResponseValidationError) Key() bool
- func (e GetPageResponseValidationError) Reason() string
- type ListPageActivityRequest
- func (*ListPageActivityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPageActivityRequest) GetPageId() uint64
- func (x *ListPageActivityRequest) GetPagination() *database.PaginationRequest
- func (*ListPageActivityRequest) ProtoMessage()
- func (x *ListPageActivityRequest) ProtoReflect() protoreflect.Message
- func (x *ListPageActivityRequest) Reset()
- func (m *ListPageActivityRequest) Sanitize() error
- func (x *ListPageActivityRequest) String() string
- func (m *ListPageActivityRequest) Validate() error
- func (m *ListPageActivityRequest) ValidateAll() error
- type ListPageActivityRequestMultiError
- type ListPageActivityRequestValidationError
- func (e ListPageActivityRequestValidationError) Cause() error
- func (e ListPageActivityRequestValidationError) Error() string
- func (e ListPageActivityRequestValidationError) ErrorName() string
- func (e ListPageActivityRequestValidationError) Field() string
- func (e ListPageActivityRequestValidationError) Key() bool
- func (e ListPageActivityRequestValidationError) Reason() string
- type ListPageActivityResponse
- func (*ListPageActivityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPageActivityResponse) GetActivity() []*wiki.PageActivity
- func (x *ListPageActivityResponse) GetPagination() *database.PaginationResponse
- func (*ListPageActivityResponse) ProtoMessage()
- func (x *ListPageActivityResponse) ProtoReflect() protoreflect.Message
- func (x *ListPageActivityResponse) Reset()
- func (m *ListPageActivityResponse) Sanitize() error
- func (x *ListPageActivityResponse) String() string
- func (m *ListPageActivityResponse) Validate() error
- func (m *ListPageActivityResponse) ValidateAll() error
- type ListPageActivityResponseMultiError
- type ListPageActivityResponseValidationError
- func (e ListPageActivityResponseValidationError) Cause() error
- func (e ListPageActivityResponseValidationError) Error() string
- func (e ListPageActivityResponseValidationError) ErrorName() string
- func (e ListPageActivityResponseValidationError) Field() string
- func (e ListPageActivityResponseValidationError) Key() bool
- func (e ListPageActivityResponseValidationError) Reason() string
- type ListPagesRequest
- func (*ListPagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPagesRequest) GetJob() string
- func (x *ListPagesRequest) GetPagination() *database.PaginationRequest
- func (x *ListPagesRequest) GetRootOnly() bool
- func (x *ListPagesRequest) GetSearch() string
- func (x *ListPagesRequest) GetSort() *database.Sort
- func (*ListPagesRequest) ProtoMessage()
- func (x *ListPagesRequest) ProtoReflect() protoreflect.Message
- func (x *ListPagesRequest) Reset()
- func (m *ListPagesRequest) Sanitize() error
- func (x *ListPagesRequest) String() string
- func (m *ListPagesRequest) Validate() error
- func (m *ListPagesRequest) ValidateAll() error
- type ListPagesRequestMultiError
- type ListPagesRequestValidationError
- func (e ListPagesRequestValidationError) Cause() error
- func (e ListPagesRequestValidationError) Error() string
- func (e ListPagesRequestValidationError) ErrorName() string
- func (e ListPagesRequestValidationError) Field() string
- func (e ListPagesRequestValidationError) Key() bool
- func (e ListPagesRequestValidationError) Reason() string
- type ListPagesResponse
- func (*ListPagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPagesResponse) GetPages() []*wiki.PageShort
- func (x *ListPagesResponse) GetPagination() *database.PaginationResponse
- func (*ListPagesResponse) ProtoMessage()
- func (x *ListPagesResponse) ProtoReflect() protoreflect.Message
- func (x *ListPagesResponse) Reset()
- func (m *ListPagesResponse) Sanitize() error
- func (x *ListPagesResponse) String() string
- func (m *ListPagesResponse) Validate() error
- func (m *ListPagesResponse) ValidateAll() error
- type ListPagesResponseMultiError
- type ListPagesResponseValidationError
- func (e ListPagesResponseValidationError) Cause() error
- func (e ListPagesResponseValidationError) Error() string
- func (e ListPagesResponseValidationError) ErrorName() string
- func (e ListPagesResponseValidationError) Field() string
- func (e ListPagesResponseValidationError) Key() bool
- func (e ListPagesResponseValidationError) Reason() string
- type Params
- type Server
- func (s *Server) CreatePage(ctx context.Context, req *CreatePageRequest) (*CreatePageResponse, error)
- func (s *Server) DeletePage(ctx context.Context, req *DeletePageRequest) (*DeletePageResponse, error)
- func (s *Server) GetPage(ctx context.Context, req *GetPageRequest) (*GetPageResponse, error)
- func (s *Server) GetPermsRemap() map[string]string
- func (s *Server) ListPageActivity(ctx context.Context, req *ListPageActivityRequest) (*ListPageActivityResponse, error)
- func (s *Server) ListPages(ctx context.Context, req *ListPagesRequest) (*ListPagesResponse, error)
- func (s *Server) RegisterServer(srv *grpc.Server)
- func (s *Server) UpdatePage(ctx context.Context, req *UpdatePageRequest) (*UpdatePageResponse, error)
- type UnimplementedWikiServiceServer
- func (UnimplementedWikiServiceServer) CreatePage(context.Context, *CreatePageRequest) (*CreatePageResponse, error)
- func (UnimplementedWikiServiceServer) DeletePage(context.Context, *DeletePageRequest) (*DeletePageResponse, error)
- func (UnimplementedWikiServiceServer) GetPage(context.Context, *GetPageRequest) (*GetPageResponse, error)
- func (UnimplementedWikiServiceServer) ListPageActivity(context.Context, *ListPageActivityRequest) (*ListPageActivityResponse, error)
- func (UnimplementedWikiServiceServer) ListPages(context.Context, *ListPagesRequest) (*ListPagesResponse, error)
- func (UnimplementedWikiServiceServer) UpdatePage(context.Context, *UpdatePageRequest) (*UpdatePageResponse, error)
- type UnsafeWikiServiceServer
- type UpdatePageRequest
- func (*UpdatePageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePageRequest) GetPage() *wiki.Page
- func (*UpdatePageRequest) ProtoMessage()
- func (x *UpdatePageRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePageRequest) Reset()
- func (m *UpdatePageRequest) Sanitize() error
- func (x *UpdatePageRequest) String() string
- func (m *UpdatePageRequest) Validate() error
- func (m *UpdatePageRequest) ValidateAll() error
- type UpdatePageRequestMultiError
- type UpdatePageRequestValidationError
- func (e UpdatePageRequestValidationError) Cause() error
- func (e UpdatePageRequestValidationError) Error() string
- func (e UpdatePageRequestValidationError) ErrorName() string
- func (e UpdatePageRequestValidationError) Field() string
- func (e UpdatePageRequestValidationError) Key() bool
- func (e UpdatePageRequestValidationError) Reason() string
- type UpdatePageResponse
- func (*UpdatePageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePageResponse) GetPage() *wiki.Page
- func (*UpdatePageResponse) ProtoMessage()
- func (x *UpdatePageResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePageResponse) Reset()
- func (m *UpdatePageResponse) Sanitize() error
- func (x *UpdatePageResponse) String() string
- func (m *UpdatePageResponse) Validate() error
- func (m *UpdatePageResponse) ValidateAll() error
- type UpdatePageResponseMultiError
- type UpdatePageResponseValidationError
- func (e UpdatePageResponseValidationError) Cause() error
- func (e UpdatePageResponseValidationError) Error() string
- func (e UpdatePageResponseValidationError) ErrorName() string
- func (e UpdatePageResponseValidationError) Field() string
- func (e UpdatePageResponseValidationError) Key() bool
- func (e UpdatePageResponseValidationError) Reason() string
- type WikiServiceClient
- type WikiServiceServer
Constants ¶
const ( WikiService_ListPages_FullMethodName = "/services.wiki.WikiService/ListPages" WikiService_GetPage_FullMethodName = "/services.wiki.WikiService/GetPage" WikiService_CreatePage_FullMethodName = "/services.wiki.WikiService/CreatePage" WikiService_UpdatePage_FullMethodName = "/services.wiki.WikiService/UpdatePage" WikiService_DeletePage_FullMethodName = "/services.wiki.WikiService/DeletePage" WikiService_ListPageActivity_FullMethodName = "/services.wiki.WikiService/ListPageActivity" )
Variables ¶
var File_services_wiki_wiki_proto protoreflect.FileDescriptor
var PermsRemap = map[string]string{
"WikiService/GetPage": "WikiService/ListPages",
}
var WikiService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.wiki.WikiService", HandlerType: (*WikiServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListPages", Handler: _WikiService_ListPages_Handler, }, { MethodName: "GetPage", Handler: _WikiService_GetPage_Handler, }, { MethodName: "CreatePage", Handler: _WikiService_CreatePage_Handler, }, { MethodName: "UpdatePage", Handler: _WikiService_UpdatePage_Handler, }, { MethodName: "DeletePage", Handler: _WikiService_DeletePage_Handler, }, { MethodName: "ListPageActivity", Handler: _WikiService_ListPageActivity_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/wiki/wiki.proto", }
WikiService_ServiceDesc is the grpc.ServiceDesc for WikiService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWikiServiceServer ¶
func RegisterWikiServiceServer(s grpc.ServiceRegistrar, srv WikiServiceServer)
Types ¶
type CreatePageRequest ¶
type CreatePageRequest struct { Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*CreatePageRequest) Descriptor
deprecated
func (*CreatePageRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePageRequest.ProtoReflect.Descriptor instead.
func (*CreatePageRequest) GetPage ¶
func (x *CreatePageRequest) GetPage() *wiki.Page
func (*CreatePageRequest) ProtoMessage ¶
func (*CreatePageRequest) ProtoMessage()
func (*CreatePageRequest) ProtoReflect ¶
func (x *CreatePageRequest) ProtoReflect() protoreflect.Message
func (*CreatePageRequest) Reset ¶
func (x *CreatePageRequest) Reset()
func (*CreatePageRequest) Sanitize ¶
func (m *CreatePageRequest) Sanitize() error
func (*CreatePageRequest) String ¶
func (x *CreatePageRequest) String() string
func (*CreatePageRequest) Validate ¶
func (m *CreatePageRequest) Validate() error
Validate checks the field values on CreatePageRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreatePageRequest) ValidateAll ¶
func (m *CreatePageRequest) ValidateAll() error
ValidateAll checks the field values on CreatePageRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreatePageRequestMultiError, or nil if none found.
type CreatePageRequestMultiError ¶
type CreatePageRequestMultiError []error
CreatePageRequestMultiError is an error wrapping multiple validation errors returned by CreatePageRequest.ValidateAll() if the designated constraints aren't met.
func (CreatePageRequestMultiError) AllErrors ¶
func (m CreatePageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreatePageRequestMultiError) Error ¶
func (m CreatePageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreatePageRequestValidationError ¶
type CreatePageRequestValidationError struct {
// contains filtered or unexported fields
}
CreatePageRequestValidationError is the validation error returned by CreatePageRequest.Validate if the designated constraints aren't met.
func (CreatePageRequestValidationError) Cause ¶
func (e CreatePageRequestValidationError) Cause() error
Cause function returns cause value.
func (CreatePageRequestValidationError) Error ¶
func (e CreatePageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePageRequestValidationError) ErrorName ¶
func (e CreatePageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePageRequestValidationError) Field ¶
func (e CreatePageRequestValidationError) Field() string
Field function returns field value.
func (CreatePageRequestValidationError) Key ¶
func (e CreatePageRequestValidationError) Key() bool
Key function returns key value.
func (CreatePageRequestValidationError) Reason ¶
func (e CreatePageRequestValidationError) Reason() string
Reason function returns reason value.
type CreatePageResponse ¶
type CreatePageResponse struct { Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*CreatePageResponse) Descriptor
deprecated
func (*CreatePageResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreatePageResponse.ProtoReflect.Descriptor instead.
func (*CreatePageResponse) GetPage ¶
func (x *CreatePageResponse) GetPage() *wiki.Page
func (*CreatePageResponse) ProtoMessage ¶
func (*CreatePageResponse) ProtoMessage()
func (*CreatePageResponse) ProtoReflect ¶
func (x *CreatePageResponse) ProtoReflect() protoreflect.Message
func (*CreatePageResponse) Reset ¶
func (x *CreatePageResponse) Reset()
func (*CreatePageResponse) Sanitize ¶
func (m *CreatePageResponse) Sanitize() error
func (*CreatePageResponse) String ¶
func (x *CreatePageResponse) String() string
func (*CreatePageResponse) Validate ¶
func (m *CreatePageResponse) Validate() error
Validate checks the field values on CreatePageResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreatePageResponse) ValidateAll ¶
func (m *CreatePageResponse) ValidateAll() error
ValidateAll checks the field values on CreatePageResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreatePageResponseMultiError, or nil if none found.
type CreatePageResponseMultiError ¶
type CreatePageResponseMultiError []error
CreatePageResponseMultiError is an error wrapping multiple validation errors returned by CreatePageResponse.ValidateAll() if the designated constraints aren't met.
func (CreatePageResponseMultiError) AllErrors ¶
func (m CreatePageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreatePageResponseMultiError) Error ¶
func (m CreatePageResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreatePageResponseValidationError ¶
type CreatePageResponseValidationError struct {
// contains filtered or unexported fields
}
CreatePageResponseValidationError is the validation error returned by CreatePageResponse.Validate if the designated constraints aren't met.
func (CreatePageResponseValidationError) Cause ¶
func (e CreatePageResponseValidationError) Cause() error
Cause function returns cause value.
func (CreatePageResponseValidationError) Error ¶
func (e CreatePageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePageResponseValidationError) ErrorName ¶
func (e CreatePageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePageResponseValidationError) Field ¶
func (e CreatePageResponseValidationError) Field() string
Field function returns field value.
func (CreatePageResponseValidationError) Key ¶
func (e CreatePageResponseValidationError) Key() bool
Key function returns key value.
func (CreatePageResponseValidationError) Reason ¶
func (e CreatePageResponseValidationError) Reason() string
Reason function returns reason value.
type DeletePageRequest ¶
type DeletePageRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeletePageRequest) Descriptor
deprecated
func (*DeletePageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePageRequest.ProtoReflect.Descriptor instead.
func (*DeletePageRequest) GetId ¶
func (x *DeletePageRequest) GetId() uint64
func (*DeletePageRequest) ProtoMessage ¶
func (*DeletePageRequest) ProtoMessage()
func (*DeletePageRequest) ProtoReflect ¶
func (x *DeletePageRequest) ProtoReflect() protoreflect.Message
func (*DeletePageRequest) Reset ¶
func (x *DeletePageRequest) Reset()
func (*DeletePageRequest) Sanitize ¶
func (m *DeletePageRequest) Sanitize() error
func (*DeletePageRequest) String ¶
func (x *DeletePageRequest) String() string
func (*DeletePageRequest) Validate ¶
func (m *DeletePageRequest) Validate() error
Validate checks the field values on DeletePageRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeletePageRequest) ValidateAll ¶
func (m *DeletePageRequest) ValidateAll() error
ValidateAll checks the field values on DeletePageRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeletePageRequestMultiError, or nil if none found.
type DeletePageRequestMultiError ¶
type DeletePageRequestMultiError []error
DeletePageRequestMultiError is an error wrapping multiple validation errors returned by DeletePageRequest.ValidateAll() if the designated constraints aren't met.
func (DeletePageRequestMultiError) AllErrors ¶
func (m DeletePageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePageRequestMultiError) Error ¶
func (m DeletePageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePageRequestValidationError ¶
type DeletePageRequestValidationError struct {
// contains filtered or unexported fields
}
DeletePageRequestValidationError is the validation error returned by DeletePageRequest.Validate if the designated constraints aren't met.
func (DeletePageRequestValidationError) Cause ¶
func (e DeletePageRequestValidationError) Cause() error
Cause function returns cause value.
func (DeletePageRequestValidationError) Error ¶
func (e DeletePageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePageRequestValidationError) ErrorName ¶
func (e DeletePageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePageRequestValidationError) Field ¶
func (e DeletePageRequestValidationError) Field() string
Field function returns field value.
func (DeletePageRequestValidationError) Key ¶
func (e DeletePageRequestValidationError) Key() bool
Key function returns key value.
func (DeletePageRequestValidationError) Reason ¶
func (e DeletePageRequestValidationError) Reason() string
Reason function returns reason value.
type DeletePageResponse ¶
type DeletePageResponse struct {
// contains filtered or unexported fields
}
func (*DeletePageResponse) Descriptor
deprecated
func (*DeletePageResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeletePageResponse.ProtoReflect.Descriptor instead.
func (*DeletePageResponse) ProtoMessage ¶
func (*DeletePageResponse) ProtoMessage()
func (*DeletePageResponse) ProtoReflect ¶
func (x *DeletePageResponse) ProtoReflect() protoreflect.Message
func (*DeletePageResponse) Reset ¶
func (x *DeletePageResponse) Reset()
func (*DeletePageResponse) Sanitize ¶
func (m *DeletePageResponse) Sanitize() error
func (*DeletePageResponse) String ¶
func (x *DeletePageResponse) String() string
func (*DeletePageResponse) Validate ¶
func (m *DeletePageResponse) Validate() error
Validate checks the field values on DeletePageResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeletePageResponse) ValidateAll ¶
func (m *DeletePageResponse) ValidateAll() error
ValidateAll checks the field values on DeletePageResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeletePageResponseMultiError, or nil if none found.
type DeletePageResponseMultiError ¶
type DeletePageResponseMultiError []error
DeletePageResponseMultiError is an error wrapping multiple validation errors returned by DeletePageResponse.ValidateAll() if the designated constraints aren't met.
func (DeletePageResponseMultiError) AllErrors ¶
func (m DeletePageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePageResponseMultiError) Error ¶
func (m DeletePageResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePageResponseValidationError ¶
type DeletePageResponseValidationError struct {
// contains filtered or unexported fields
}
DeletePageResponseValidationError is the validation error returned by DeletePageResponse.Validate if the designated constraints aren't met.
func (DeletePageResponseValidationError) Cause ¶
func (e DeletePageResponseValidationError) Cause() error
Cause function returns cause value.
func (DeletePageResponseValidationError) Error ¶
func (e DeletePageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePageResponseValidationError) ErrorName ¶
func (e DeletePageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePageResponseValidationError) Field ¶
func (e DeletePageResponseValidationError) Field() string
Field function returns field value.
func (DeletePageResponseValidationError) Key ¶
func (e DeletePageResponseValidationError) Key() bool
Key function returns key value.
func (DeletePageResponseValidationError) Reason ¶
func (e DeletePageResponseValidationError) Reason() string
Reason function returns reason value.
type GetPageRequest ¶
type GetPageRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetPageRequest) Descriptor
deprecated
func (*GetPageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPageRequest.ProtoReflect.Descriptor instead.
func (*GetPageRequest) GetId ¶
func (x *GetPageRequest) GetId() uint64
func (*GetPageRequest) ProtoMessage ¶
func (*GetPageRequest) ProtoMessage()
func (*GetPageRequest) ProtoReflect ¶
func (x *GetPageRequest) ProtoReflect() protoreflect.Message
func (*GetPageRequest) Reset ¶
func (x *GetPageRequest) Reset()
func (*GetPageRequest) Sanitize ¶
func (m *GetPageRequest) Sanitize() error
func (*GetPageRequest) String ¶
func (x *GetPageRequest) String() string
func (*GetPageRequest) Validate ¶
func (m *GetPageRequest) Validate() error
Validate checks the field values on GetPageRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetPageRequest) ValidateAll ¶
func (m *GetPageRequest) ValidateAll() error
ValidateAll checks the field values on GetPageRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPageRequestMultiError, or nil if none found.
type GetPageRequestMultiError ¶
type GetPageRequestMultiError []error
GetPageRequestMultiError is an error wrapping multiple validation errors returned by GetPageRequest.ValidateAll() if the designated constraints aren't met.
func (GetPageRequestMultiError) AllErrors ¶
func (m GetPageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPageRequestMultiError) Error ¶
func (m GetPageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPageRequestValidationError ¶
type GetPageRequestValidationError struct {
// contains filtered or unexported fields
}
GetPageRequestValidationError is the validation error returned by GetPageRequest.Validate if the designated constraints aren't met.
func (GetPageRequestValidationError) Cause ¶
func (e GetPageRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPageRequestValidationError) Error ¶
func (e GetPageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPageRequestValidationError) ErrorName ¶
func (e GetPageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPageRequestValidationError) Field ¶
func (e GetPageRequestValidationError) Field() string
Field function returns field value.
func (GetPageRequestValidationError) Key ¶
func (e GetPageRequestValidationError) Key() bool
Key function returns key value.
func (GetPageRequestValidationError) Reason ¶
func (e GetPageRequestValidationError) Reason() string
Reason function returns reason value.
type GetPageResponse ¶
type GetPageResponse struct { Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*GetPageResponse) Descriptor
deprecated
func (*GetPageResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPageResponse.ProtoReflect.Descriptor instead.
func (*GetPageResponse) GetPage ¶
func (x *GetPageResponse) GetPage() *wiki.Page
func (*GetPageResponse) ProtoMessage ¶
func (*GetPageResponse) ProtoMessage()
func (*GetPageResponse) ProtoReflect ¶
func (x *GetPageResponse) ProtoReflect() protoreflect.Message
func (*GetPageResponse) Reset ¶
func (x *GetPageResponse) Reset()
func (*GetPageResponse) Sanitize ¶
func (m *GetPageResponse) Sanitize() error
func (*GetPageResponse) String ¶
func (x *GetPageResponse) String() string
func (*GetPageResponse) Validate ¶
func (m *GetPageResponse) Validate() error
Validate checks the field values on GetPageResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetPageResponse) ValidateAll ¶
func (m *GetPageResponse) ValidateAll() error
ValidateAll checks the field values on GetPageResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPageResponseMultiError, or nil if none found.
type GetPageResponseMultiError ¶
type GetPageResponseMultiError []error
GetPageResponseMultiError is an error wrapping multiple validation errors returned by GetPageResponse.ValidateAll() if the designated constraints aren't met.
func (GetPageResponseMultiError) AllErrors ¶
func (m GetPageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPageResponseMultiError) Error ¶
func (m GetPageResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPageResponseValidationError ¶
type GetPageResponseValidationError struct {
// contains filtered or unexported fields
}
GetPageResponseValidationError is the validation error returned by GetPageResponse.Validate if the designated constraints aren't met.
func (GetPageResponseValidationError) Cause ¶
func (e GetPageResponseValidationError) Cause() error
Cause function returns cause value.
func (GetPageResponseValidationError) Error ¶
func (e GetPageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetPageResponseValidationError) ErrorName ¶
func (e GetPageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetPageResponseValidationError) Field ¶
func (e GetPageResponseValidationError) Field() string
Field function returns field value.
func (GetPageResponseValidationError) Key ¶
func (e GetPageResponseValidationError) Key() bool
Key function returns key value.
func (GetPageResponseValidationError) Reason ¶
func (e GetPageResponseValidationError) Reason() string
Reason function returns reason value.
type ListPageActivityRequest ¶
type ListPageActivityRequest struct { Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` PageId uint64 `protobuf:"varint,2,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"` // contains filtered or unexported fields }
func (*ListPageActivityRequest) Descriptor
deprecated
func (*ListPageActivityRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPageActivityRequest.ProtoReflect.Descriptor instead.
func (*ListPageActivityRequest) GetPageId ¶
func (x *ListPageActivityRequest) GetPageId() uint64
func (*ListPageActivityRequest) GetPagination ¶
func (x *ListPageActivityRequest) GetPagination() *database.PaginationRequest
func (*ListPageActivityRequest) ProtoMessage ¶
func (*ListPageActivityRequest) ProtoMessage()
func (*ListPageActivityRequest) ProtoReflect ¶
func (x *ListPageActivityRequest) ProtoReflect() protoreflect.Message
func (*ListPageActivityRequest) Reset ¶
func (x *ListPageActivityRequest) Reset()
func (*ListPageActivityRequest) Sanitize ¶
func (m *ListPageActivityRequest) Sanitize() error
func (*ListPageActivityRequest) String ¶
func (x *ListPageActivityRequest) String() string
func (*ListPageActivityRequest) Validate ¶
func (m *ListPageActivityRequest) Validate() error
Validate checks the field values on ListPageActivityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListPageActivityRequest) ValidateAll ¶
func (m *ListPageActivityRequest) ValidateAll() error
ValidateAll checks the field values on ListPageActivityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListPageActivityRequestMultiError, or nil if none found.
type ListPageActivityRequestMultiError ¶
type ListPageActivityRequestMultiError []error
ListPageActivityRequestMultiError is an error wrapping multiple validation errors returned by ListPageActivityRequest.ValidateAll() if the designated constraints aren't met.
func (ListPageActivityRequestMultiError) AllErrors ¶
func (m ListPageActivityRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPageActivityRequestMultiError) Error ¶
func (m ListPageActivityRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPageActivityRequestValidationError ¶
type ListPageActivityRequestValidationError struct {
// contains filtered or unexported fields
}
ListPageActivityRequestValidationError is the validation error returned by ListPageActivityRequest.Validate if the designated constraints aren't met.
func (ListPageActivityRequestValidationError) Cause ¶
func (e ListPageActivityRequestValidationError) Cause() error
Cause function returns cause value.
func (ListPageActivityRequestValidationError) Error ¶
func (e ListPageActivityRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListPageActivityRequestValidationError) ErrorName ¶
func (e ListPageActivityRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListPageActivityRequestValidationError) Field ¶
func (e ListPageActivityRequestValidationError) Field() string
Field function returns field value.
func (ListPageActivityRequestValidationError) Key ¶
func (e ListPageActivityRequestValidationError) Key() bool
Key function returns key value.
func (ListPageActivityRequestValidationError) Reason ¶
func (e ListPageActivityRequestValidationError) Reason() string
Reason function returns reason value.
type ListPageActivityResponse ¶
type ListPageActivityResponse struct { Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Activity []*wiki.PageActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` // contains filtered or unexported fields }
func (*ListPageActivityResponse) Descriptor
deprecated
func (*ListPageActivityResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPageActivityResponse.ProtoReflect.Descriptor instead.
func (*ListPageActivityResponse) GetActivity ¶
func (x *ListPageActivityResponse) GetActivity() []*wiki.PageActivity
func (*ListPageActivityResponse) GetPagination ¶
func (x *ListPageActivityResponse) GetPagination() *database.PaginationResponse
func (*ListPageActivityResponse) ProtoMessage ¶
func (*ListPageActivityResponse) ProtoMessage()
func (*ListPageActivityResponse) ProtoReflect ¶
func (x *ListPageActivityResponse) ProtoReflect() protoreflect.Message
func (*ListPageActivityResponse) Reset ¶
func (x *ListPageActivityResponse) Reset()
func (*ListPageActivityResponse) Sanitize ¶
func (m *ListPageActivityResponse) Sanitize() error
func (*ListPageActivityResponse) String ¶
func (x *ListPageActivityResponse) String() string
func (*ListPageActivityResponse) Validate ¶
func (m *ListPageActivityResponse) Validate() error
Validate checks the field values on ListPageActivityResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListPageActivityResponse) ValidateAll ¶
func (m *ListPageActivityResponse) ValidateAll() error
ValidateAll checks the field values on ListPageActivityResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListPageActivityResponseMultiError, or nil if none found.
type ListPageActivityResponseMultiError ¶
type ListPageActivityResponseMultiError []error
ListPageActivityResponseMultiError is an error wrapping multiple validation errors returned by ListPageActivityResponse.ValidateAll() if the designated constraints aren't met.
func (ListPageActivityResponseMultiError) AllErrors ¶
func (m ListPageActivityResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPageActivityResponseMultiError) Error ¶
func (m ListPageActivityResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPageActivityResponseValidationError ¶
type ListPageActivityResponseValidationError struct {
// contains filtered or unexported fields
}
ListPageActivityResponseValidationError is the validation error returned by ListPageActivityResponse.Validate if the designated constraints aren't met.
func (ListPageActivityResponseValidationError) Cause ¶
func (e ListPageActivityResponseValidationError) Cause() error
Cause function returns cause value.
func (ListPageActivityResponseValidationError) Error ¶
func (e ListPageActivityResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListPageActivityResponseValidationError) ErrorName ¶
func (e ListPageActivityResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListPageActivityResponseValidationError) Field ¶
func (e ListPageActivityResponseValidationError) Field() string
Field function returns field value.
func (ListPageActivityResponseValidationError) Key ¶
func (e ListPageActivityResponseValidationError) Key() bool
Key function returns key value.
func (ListPageActivityResponseValidationError) Reason ¶
func (e ListPageActivityResponseValidationError) Reason() string
Reason function returns reason value.
type ListPagesRequest ¶
type ListPagesRequest struct { Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params Job *string `protobuf:"bytes,3,opt,name=job,proto3,oneof" json:"job,omitempty"` RootOnly *bool `protobuf:"varint,4,opt,name=root_only,json=rootOnly,proto3,oneof" json:"root_only,omitempty"` Search *string `protobuf:"bytes,5,opt,name=search,proto3,oneof" json:"search,omitempty"` // contains filtered or unexported fields }
func (*ListPagesRequest) Descriptor
deprecated
func (*ListPagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPagesRequest.ProtoReflect.Descriptor instead.
func (*ListPagesRequest) GetJob ¶
func (x *ListPagesRequest) GetJob() string
func (*ListPagesRequest) GetPagination ¶
func (x *ListPagesRequest) GetPagination() *database.PaginationRequest
func (*ListPagesRequest) GetRootOnly ¶
func (x *ListPagesRequest) GetRootOnly() bool
func (*ListPagesRequest) GetSearch ¶
func (x *ListPagesRequest) GetSearch() string
func (*ListPagesRequest) GetSort ¶
func (x *ListPagesRequest) GetSort() *database.Sort
func (*ListPagesRequest) ProtoMessage ¶
func (*ListPagesRequest) ProtoMessage()
func (*ListPagesRequest) ProtoReflect ¶
func (x *ListPagesRequest) ProtoReflect() protoreflect.Message
func (*ListPagesRequest) Reset ¶
func (x *ListPagesRequest) Reset()
func (*ListPagesRequest) Sanitize ¶
func (m *ListPagesRequest) Sanitize() error
func (*ListPagesRequest) String ¶
func (x *ListPagesRequest) String() string
func (*ListPagesRequest) Validate ¶
func (m *ListPagesRequest) Validate() error
Validate checks the field values on ListPagesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListPagesRequest) ValidateAll ¶
func (m *ListPagesRequest) ValidateAll() error
ValidateAll checks the field values on ListPagesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListPagesRequestMultiError, or nil if none found.
type ListPagesRequestMultiError ¶
type ListPagesRequestMultiError []error
ListPagesRequestMultiError is an error wrapping multiple validation errors returned by ListPagesRequest.ValidateAll() if the designated constraints aren't met.
func (ListPagesRequestMultiError) AllErrors ¶
func (m ListPagesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPagesRequestMultiError) Error ¶
func (m ListPagesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPagesRequestValidationError ¶
type ListPagesRequestValidationError struct {
// contains filtered or unexported fields
}
ListPagesRequestValidationError is the validation error returned by ListPagesRequest.Validate if the designated constraints aren't met.
func (ListPagesRequestValidationError) Cause ¶
func (e ListPagesRequestValidationError) Cause() error
Cause function returns cause value.
func (ListPagesRequestValidationError) Error ¶
func (e ListPagesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListPagesRequestValidationError) ErrorName ¶
func (e ListPagesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListPagesRequestValidationError) Field ¶
func (e ListPagesRequestValidationError) Field() string
Field function returns field value.
func (ListPagesRequestValidationError) Key ¶
func (e ListPagesRequestValidationError) Key() bool
Key function returns key value.
func (ListPagesRequestValidationError) Reason ¶
func (e ListPagesRequestValidationError) Reason() string
Reason function returns reason value.
type ListPagesResponse ¶
type ListPagesResponse struct { Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Pages []*wiki.PageShort `protobuf:"bytes,2,rep,name=pages,proto3" json:"pages,omitempty"` // contains filtered or unexported fields }
func (*ListPagesResponse) Descriptor
deprecated
func (*ListPagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPagesResponse.ProtoReflect.Descriptor instead.
func (*ListPagesResponse) GetPages ¶
func (x *ListPagesResponse) GetPages() []*wiki.PageShort
func (*ListPagesResponse) GetPagination ¶
func (x *ListPagesResponse) GetPagination() *database.PaginationResponse
func (*ListPagesResponse) ProtoMessage ¶
func (*ListPagesResponse) ProtoMessage()
func (*ListPagesResponse) ProtoReflect ¶
func (x *ListPagesResponse) ProtoReflect() protoreflect.Message
func (*ListPagesResponse) Reset ¶
func (x *ListPagesResponse) Reset()
func (*ListPagesResponse) Sanitize ¶
func (m *ListPagesResponse) Sanitize() error
func (*ListPagesResponse) String ¶
func (x *ListPagesResponse) String() string
func (*ListPagesResponse) Validate ¶
func (m *ListPagesResponse) Validate() error
Validate checks the field values on ListPagesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListPagesResponse) ValidateAll ¶
func (m *ListPagesResponse) ValidateAll() error
ValidateAll checks the field values on ListPagesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListPagesResponseMultiError, or nil if none found.
type ListPagesResponseMultiError ¶
type ListPagesResponseMultiError []error
ListPagesResponseMultiError is an error wrapping multiple validation errors returned by ListPagesResponse.ValidateAll() if the designated constraints aren't met.
func (ListPagesResponseMultiError) AllErrors ¶
func (m ListPagesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPagesResponseMultiError) Error ¶
func (m ListPagesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPagesResponseValidationError ¶
type ListPagesResponseValidationError struct {
// contains filtered or unexported fields
}
ListPagesResponseValidationError is the validation error returned by ListPagesResponse.Validate if the designated constraints aren't met.
func (ListPagesResponseValidationError) Cause ¶
func (e ListPagesResponseValidationError) Cause() error
Cause function returns cause value.
func (ListPagesResponseValidationError) Error ¶
func (e ListPagesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListPagesResponseValidationError) ErrorName ¶
func (e ListPagesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListPagesResponseValidationError) Field ¶
func (e ListPagesResponseValidationError) Field() string
Field function returns field value.
func (ListPagesResponseValidationError) Key ¶
func (e ListPagesResponseValidationError) Key() bool
Key function returns key value.
func (ListPagesResponseValidationError) Reason ¶
func (e ListPagesResponseValidationError) Reason() string
Reason function returns reason value.
type Params ¶
type Params struct { fx.In LC fx.Lifecycle Logger *zap.Logger DB *sql.DB Audit audit.IAuditer Perms perms.Permissions Enricher *mstlystcdata.UserAwareEnricher HTMLDiffer *htmldiffer.Differ }
type Server ¶
type Server struct { WikiServiceServer // contains filtered or unexported fields }
func (*Server) CreatePage ¶
func (s *Server) CreatePage(ctx context.Context, req *CreatePageRequest) (*CreatePageResponse, error)
func (*Server) DeletePage ¶
func (s *Server) DeletePage(ctx context.Context, req *DeletePageRequest) (*DeletePageResponse, error)
func (*Server) GetPage ¶
func (s *Server) GetPage(ctx context.Context, req *GetPageRequest) (*GetPageResponse, error)
func (*Server) GetPermsRemap ¶
func (*Server) ListPageActivity ¶
func (s *Server) ListPageActivity(ctx context.Context, req *ListPageActivityRequest) (*ListPageActivityResponse, error)
func (*Server) ListPages ¶
func (s *Server) ListPages(ctx context.Context, req *ListPagesRequest) (*ListPagesResponse, error)
func (*Server) RegisterServer ¶
func (*Server) UpdatePage ¶
func (s *Server) UpdatePage(ctx context.Context, req *UpdatePageRequest) (*UpdatePageResponse, error)
type UnimplementedWikiServiceServer ¶
type UnimplementedWikiServiceServer struct { }
UnimplementedWikiServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWikiServiceServer) CreatePage ¶
func (UnimplementedWikiServiceServer) CreatePage(context.Context, *CreatePageRequest) (*CreatePageResponse, error)
func (UnimplementedWikiServiceServer) DeletePage ¶
func (UnimplementedWikiServiceServer) DeletePage(context.Context, *DeletePageRequest) (*DeletePageResponse, error)
func (UnimplementedWikiServiceServer) GetPage ¶
func (UnimplementedWikiServiceServer) GetPage(context.Context, *GetPageRequest) (*GetPageResponse, error)
func (UnimplementedWikiServiceServer) ListPageActivity ¶
func (UnimplementedWikiServiceServer) ListPageActivity(context.Context, *ListPageActivityRequest) (*ListPageActivityResponse, error)
func (UnimplementedWikiServiceServer) ListPages ¶
func (UnimplementedWikiServiceServer) ListPages(context.Context, *ListPagesRequest) (*ListPagesResponse, error)
func (UnimplementedWikiServiceServer) UpdatePage ¶
func (UnimplementedWikiServiceServer) UpdatePage(context.Context, *UpdatePageRequest) (*UpdatePageResponse, error)
type UnsafeWikiServiceServer ¶
type UnsafeWikiServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWikiServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WikiServiceServer will result in compilation errors.
type UpdatePageRequest ¶
type UpdatePageRequest struct { Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*UpdatePageRequest) Descriptor
deprecated
func (*UpdatePageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePageRequest.ProtoReflect.Descriptor instead.
func (*UpdatePageRequest) GetPage ¶
func (x *UpdatePageRequest) GetPage() *wiki.Page
func (*UpdatePageRequest) ProtoMessage ¶
func (*UpdatePageRequest) ProtoMessage()
func (*UpdatePageRequest) ProtoReflect ¶
func (x *UpdatePageRequest) ProtoReflect() protoreflect.Message
func (*UpdatePageRequest) Reset ¶
func (x *UpdatePageRequest) Reset()
func (*UpdatePageRequest) Sanitize ¶
func (m *UpdatePageRequest) Sanitize() error
func (*UpdatePageRequest) String ¶
func (x *UpdatePageRequest) String() string
func (*UpdatePageRequest) Validate ¶
func (m *UpdatePageRequest) Validate() error
Validate checks the field values on UpdatePageRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdatePageRequest) ValidateAll ¶
func (m *UpdatePageRequest) ValidateAll() error
ValidateAll checks the field values on UpdatePageRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePageRequestMultiError, or nil if none found.
type UpdatePageRequestMultiError ¶
type UpdatePageRequestMultiError []error
UpdatePageRequestMultiError is an error wrapping multiple validation errors returned by UpdatePageRequest.ValidateAll() if the designated constraints aren't met.
func (UpdatePageRequestMultiError) AllErrors ¶
func (m UpdatePageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePageRequestMultiError) Error ¶
func (m UpdatePageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePageRequestValidationError ¶
type UpdatePageRequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePageRequestValidationError is the validation error returned by UpdatePageRequest.Validate if the designated constraints aren't met.
func (UpdatePageRequestValidationError) Cause ¶
func (e UpdatePageRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePageRequestValidationError) Error ¶
func (e UpdatePageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePageRequestValidationError) ErrorName ¶
func (e UpdatePageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePageRequestValidationError) Field ¶
func (e UpdatePageRequestValidationError) Field() string
Field function returns field value.
func (UpdatePageRequestValidationError) Key ¶
func (e UpdatePageRequestValidationError) Key() bool
Key function returns key value.
func (UpdatePageRequestValidationError) Reason ¶
func (e UpdatePageRequestValidationError) Reason() string
Reason function returns reason value.
type UpdatePageResponse ¶
type UpdatePageResponse struct { Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*UpdatePageResponse) Descriptor
deprecated
func (*UpdatePageResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePageResponse.ProtoReflect.Descriptor instead.
func (*UpdatePageResponse) GetPage ¶
func (x *UpdatePageResponse) GetPage() *wiki.Page
func (*UpdatePageResponse) ProtoMessage ¶
func (*UpdatePageResponse) ProtoMessage()
func (*UpdatePageResponse) ProtoReflect ¶
func (x *UpdatePageResponse) ProtoReflect() protoreflect.Message
func (*UpdatePageResponse) Reset ¶
func (x *UpdatePageResponse) Reset()
func (*UpdatePageResponse) Sanitize ¶
func (m *UpdatePageResponse) Sanitize() error
func (*UpdatePageResponse) String ¶
func (x *UpdatePageResponse) String() string
func (*UpdatePageResponse) Validate ¶
func (m *UpdatePageResponse) Validate() error
Validate checks the field values on UpdatePageResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdatePageResponse) ValidateAll ¶
func (m *UpdatePageResponse) ValidateAll() error
ValidateAll checks the field values on UpdatePageResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePageResponseMultiError, or nil if none found.
type UpdatePageResponseMultiError ¶
type UpdatePageResponseMultiError []error
UpdatePageResponseMultiError is an error wrapping multiple validation errors returned by UpdatePageResponse.ValidateAll() if the designated constraints aren't met.
func (UpdatePageResponseMultiError) AllErrors ¶
func (m UpdatePageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePageResponseMultiError) Error ¶
func (m UpdatePageResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePageResponseValidationError ¶
type UpdatePageResponseValidationError struct {
// contains filtered or unexported fields
}
UpdatePageResponseValidationError is the validation error returned by UpdatePageResponse.Validate if the designated constraints aren't met.
func (UpdatePageResponseValidationError) Cause ¶
func (e UpdatePageResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdatePageResponseValidationError) Error ¶
func (e UpdatePageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePageResponseValidationError) ErrorName ¶
func (e UpdatePageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePageResponseValidationError) Field ¶
func (e UpdatePageResponseValidationError) Field() string
Field function returns field value.
func (UpdatePageResponseValidationError) Key ¶
func (e UpdatePageResponseValidationError) Key() bool
Key function returns key value.
func (UpdatePageResponseValidationError) Reason ¶
func (e UpdatePageResponseValidationError) Reason() string
Reason function returns reason value.
type WikiServiceClient ¶
type WikiServiceClient interface { // @perm ListPages(ctx context.Context, in *ListPagesRequest, opts ...grpc.CallOption) (*ListPagesResponse, error) // @perm: Name=ListPages GetPage(ctx context.Context, in *GetPageRequest, opts ...grpc.CallOption) (*GetPageResponse, error) // @perm: Attrs=Fields/StringList:[]string{"Public"} CreatePage(ctx context.Context, in *CreatePageRequest, opts ...grpc.CallOption) (*CreatePageResponse, error) // @perm UpdatePage(ctx context.Context, in *UpdatePageRequest, opts ...grpc.CallOption) (*UpdatePageResponse, error) // @perm DeletePage(ctx context.Context, in *DeletePageRequest, opts ...grpc.CallOption) (*DeletePageResponse, error) // @perm ListPageActivity(ctx context.Context, in *ListPageActivityRequest, opts ...grpc.CallOption) (*ListPageActivityResponse, error) }
WikiServiceClient is the client API for WikiService 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 NewTestWikiServiceClient ¶
func NewTestWikiServiceClient(srv WikiServiceServer) (WikiServiceClient, context.Context, context.CancelFunc)
func NewWikiServiceClient ¶
func NewWikiServiceClient(cc grpc.ClientConnInterface) WikiServiceClient
type WikiServiceServer ¶
type WikiServiceServer interface { // @perm ListPages(context.Context, *ListPagesRequest) (*ListPagesResponse, error) // @perm: Name=ListPages GetPage(context.Context, *GetPageRequest) (*GetPageResponse, error) // @perm: Attrs=Fields/StringList:[]string{"Public"} CreatePage(context.Context, *CreatePageRequest) (*CreatePageResponse, error) // @perm UpdatePage(context.Context, *UpdatePageRequest) (*UpdatePageResponse, error) // @perm DeletePage(context.Context, *DeletePageRequest) (*DeletePageResponse, error) // @perm ListPageActivity(context.Context, *ListPageActivityRequest) (*ListPageActivityResponse, error) // contains filtered or unexported methods }
WikiServiceServer is the server API for WikiService service. All implementations must embed UnimplementedWikiServiceServer for forward compatibility