Versions in this module Expand all Collapse all v0 v0.9.4 Dec 22, 2024 Changes in this version + const WikiService_CreatePage_FullMethodName + const WikiService_DeletePage_FullMethodName + const WikiService_GetPage_FullMethodName + const WikiService_ListPageActivity_FullMethodName + const WikiService_ListPages_FullMethodName + const WikiService_UpdatePage_FullMethodName + var File_services_wiki_wiki_proto protoreflect.FileDescriptor + var PermsRemap = map[string]string + var WikiService_ServiceDesc = grpc.ServiceDesc + func RegisterWikiServiceServer(s grpc.ServiceRegistrar, srv WikiServiceServer) + type CreatePageRequest struct + Page *wiki.Page + func (*CreatePageRequest) Descriptor() ([]byte, []int) + func (*CreatePageRequest) ProtoMessage() + func (m *CreatePageRequest) Sanitize() error + func (m *CreatePageRequest) Validate() error + func (m *CreatePageRequest) ValidateAll() error + func (x *CreatePageRequest) GetPage() *wiki.Page + func (x *CreatePageRequest) ProtoReflect() protoreflect.Message + func (x *CreatePageRequest) Reset() + func (x *CreatePageRequest) String() string + type CreatePageRequestMultiError []error + func (m CreatePageRequestMultiError) AllErrors() []error + func (m CreatePageRequestMultiError) Error() string + type CreatePageRequestValidationError struct + 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 struct + Page *wiki.Page + func (*CreatePageResponse) Descriptor() ([]byte, []int) + func (*CreatePageResponse) ProtoMessage() + func (m *CreatePageResponse) Sanitize() error + func (m *CreatePageResponse) Validate() error + func (m *CreatePageResponse) ValidateAll() error + func (x *CreatePageResponse) GetPage() *wiki.Page + func (x *CreatePageResponse) ProtoReflect() protoreflect.Message + func (x *CreatePageResponse) Reset() + func (x *CreatePageResponse) String() string + type CreatePageResponseMultiError []error + func (m CreatePageResponseMultiError) AllErrors() []error + func (m CreatePageResponseMultiError) Error() string + type CreatePageResponseValidationError struct + 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 struct + Id uint64 + func (*DeletePageRequest) Descriptor() ([]byte, []int) + func (*DeletePageRequest) ProtoMessage() + func (m *DeletePageRequest) Sanitize() error + func (m *DeletePageRequest) Validate() error + func (m *DeletePageRequest) ValidateAll() error + func (x *DeletePageRequest) GetId() uint64 + func (x *DeletePageRequest) ProtoReflect() protoreflect.Message + func (x *DeletePageRequest) Reset() + func (x *DeletePageRequest) String() string + type DeletePageRequestMultiError []error + func (m DeletePageRequestMultiError) AllErrors() []error + func (m DeletePageRequestMultiError) Error() string + type DeletePageRequestValidationError struct + 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 struct + func (*DeletePageResponse) Descriptor() ([]byte, []int) + func (*DeletePageResponse) ProtoMessage() + func (m *DeletePageResponse) Sanitize() error + func (m *DeletePageResponse) Validate() error + func (m *DeletePageResponse) ValidateAll() error + func (x *DeletePageResponse) ProtoReflect() protoreflect.Message + func (x *DeletePageResponse) Reset() + func (x *DeletePageResponse) String() string + type DeletePageResponseMultiError []error + func (m DeletePageResponseMultiError) AllErrors() []error + func (m DeletePageResponseMultiError) Error() string + type DeletePageResponseValidationError struct + 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 struct + Id uint64 + func (*GetPageRequest) Descriptor() ([]byte, []int) + func (*GetPageRequest) ProtoMessage() + func (m *GetPageRequest) Sanitize() error + func (m *GetPageRequest) Validate() error + func (m *GetPageRequest) ValidateAll() error + func (x *GetPageRequest) GetId() uint64 + func (x *GetPageRequest) ProtoReflect() protoreflect.Message + func (x *GetPageRequest) Reset() + func (x *GetPageRequest) String() string + type GetPageRequestMultiError []error + func (m GetPageRequestMultiError) AllErrors() []error + func (m GetPageRequestMultiError) Error() string + type GetPageRequestValidationError struct + 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 struct + Page *wiki.Page + func (*GetPageResponse) Descriptor() ([]byte, []int) + func (*GetPageResponse) ProtoMessage() + func (m *GetPageResponse) Sanitize() error + func (m *GetPageResponse) Validate() error + func (m *GetPageResponse) ValidateAll() error + func (x *GetPageResponse) GetPage() *wiki.Page + func (x *GetPageResponse) ProtoReflect() protoreflect.Message + func (x *GetPageResponse) Reset() + func (x *GetPageResponse) String() string + type GetPageResponseMultiError []error + func (m GetPageResponseMultiError) AllErrors() []error + func (m GetPageResponseMultiError) Error() string + type GetPageResponseValidationError struct + 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 struct + PageId uint64 + Pagination *database.PaginationRequest + func (*ListPageActivityRequest) Descriptor() ([]byte, []int) + func (*ListPageActivityRequest) ProtoMessage() + func (m *ListPageActivityRequest) Sanitize() error + func (m *ListPageActivityRequest) Validate() error + func (m *ListPageActivityRequest) ValidateAll() error + func (x *ListPageActivityRequest) GetPageId() uint64 + func (x *ListPageActivityRequest) GetPagination() *database.PaginationRequest + func (x *ListPageActivityRequest) ProtoReflect() protoreflect.Message + func (x *ListPageActivityRequest) Reset() + func (x *ListPageActivityRequest) String() string + type ListPageActivityRequestMultiError []error + func (m ListPageActivityRequestMultiError) AllErrors() []error + func (m ListPageActivityRequestMultiError) Error() string + type ListPageActivityRequestValidationError struct + 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 struct + Activity []*wiki.PageActivity + Pagination *database.PaginationResponse + func (*ListPageActivityResponse) Descriptor() ([]byte, []int) + func (*ListPageActivityResponse) ProtoMessage() + func (m *ListPageActivityResponse) Sanitize() error + func (m *ListPageActivityResponse) Validate() error + func (m *ListPageActivityResponse) ValidateAll() error + func (x *ListPageActivityResponse) GetActivity() []*wiki.PageActivity + func (x *ListPageActivityResponse) GetPagination() *database.PaginationResponse + func (x *ListPageActivityResponse) ProtoReflect() protoreflect.Message + func (x *ListPageActivityResponse) Reset() + func (x *ListPageActivityResponse) String() string + type ListPageActivityResponseMultiError []error + func (m ListPageActivityResponseMultiError) AllErrors() []error + func (m ListPageActivityResponseMultiError) Error() string + type ListPageActivityResponseValidationError struct + 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 struct + Job *string + Pagination *database.PaginationRequest + RootOnly *bool + Search *string + Sort *database.Sort + func (*ListPagesRequest) Descriptor() ([]byte, []int) + func (*ListPagesRequest) ProtoMessage() + func (m *ListPagesRequest) Sanitize() error + func (m *ListPagesRequest) Validate() error + func (m *ListPagesRequest) ValidateAll() error + 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 (x *ListPagesRequest) ProtoReflect() protoreflect.Message + func (x *ListPagesRequest) Reset() + func (x *ListPagesRequest) String() string + type ListPagesRequestMultiError []error + func (m ListPagesRequestMultiError) AllErrors() []error + func (m ListPagesRequestMultiError) Error() string + type ListPagesRequestValidationError struct + 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 struct + Pages []*wiki.PageShort + Pagination *database.PaginationResponse + func (*ListPagesResponse) Descriptor() ([]byte, []int) + func (*ListPagesResponse) ProtoMessage() + func (m *ListPagesResponse) Sanitize() error + func (m *ListPagesResponse) Validate() error + func (m *ListPagesResponse) ValidateAll() error + func (x *ListPagesResponse) GetPages() []*wiki.PageShort + func (x *ListPagesResponse) GetPagination() *database.PaginationResponse + func (x *ListPagesResponse) ProtoReflect() protoreflect.Message + func (x *ListPagesResponse) Reset() + func (x *ListPagesResponse) String() string + type ListPagesResponseMultiError []error + func (m ListPagesResponseMultiError) AllErrors() []error + func (m ListPagesResponseMultiError) Error() string + type ListPagesResponseValidationError struct + 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 struct + Audit audit.IAuditer + DB *sql.DB + Enricher *mstlystcdata.UserAwareEnricher + HTMLDiffer *htmldiffer.Differ + LC fx.Lifecycle + Logger *zap.Logger + Perms perms.Permissions + type Server struct + func NewServer(p Params) *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 struct + 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 interface + type UpdatePageRequest struct + Page *wiki.Page + func (*UpdatePageRequest) Descriptor() ([]byte, []int) + func (*UpdatePageRequest) ProtoMessage() + func (m *UpdatePageRequest) Sanitize() error + func (m *UpdatePageRequest) Validate() error + func (m *UpdatePageRequest) ValidateAll() error + func (x *UpdatePageRequest) GetPage() *wiki.Page + func (x *UpdatePageRequest) ProtoReflect() protoreflect.Message + func (x *UpdatePageRequest) Reset() + func (x *UpdatePageRequest) String() string + type UpdatePageRequestMultiError []error + func (m UpdatePageRequestMultiError) AllErrors() []error + func (m UpdatePageRequestMultiError) Error() string + type UpdatePageRequestValidationError struct + 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 struct + Page *wiki.Page + func (*UpdatePageResponse) Descriptor() ([]byte, []int) + func (*UpdatePageResponse) ProtoMessage() + func (m *UpdatePageResponse) Sanitize() error + func (m *UpdatePageResponse) Validate() error + func (m *UpdatePageResponse) ValidateAll() error + func (x *UpdatePageResponse) GetPage() *wiki.Page + func (x *UpdatePageResponse) ProtoReflect() protoreflect.Message + func (x *UpdatePageResponse) Reset() + func (x *UpdatePageResponse) String() string + type UpdatePageResponseMultiError []error + func (m UpdatePageResponseMultiError) AllErrors() []error + func (m UpdatePageResponseMultiError) Error() string + type UpdatePageResponseValidationError struct + 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 interface + CreatePage func(ctx context.Context, in *CreatePageRequest, opts ...grpc.CallOption) (*CreatePageResponse, error) + DeletePage func(ctx context.Context, in *DeletePageRequest, opts ...grpc.CallOption) (*DeletePageResponse, error) + GetPage func(ctx context.Context, in *GetPageRequest, opts ...grpc.CallOption) (*GetPageResponse, error) + ListPageActivity func(ctx context.Context, in *ListPageActivityRequest, opts ...grpc.CallOption) (*ListPageActivityResponse, error) + ListPages func(ctx context.Context, in *ListPagesRequest, opts ...grpc.CallOption) (*ListPagesResponse, error) + UpdatePage func(ctx context.Context, in *UpdatePageRequest, opts ...grpc.CallOption) (*UpdatePageResponse, error) + func NewTestWikiServiceClient(srv WikiServiceServer) (WikiServiceClient, context.Context, context.CancelFunc) + func NewWikiServiceClient(cc grpc.ClientConnInterface) WikiServiceClient + type WikiServiceServer interface + CreatePage func(context.Context, *CreatePageRequest) (*CreatePageResponse, error) + DeletePage func(context.Context, *DeletePageRequest) (*DeletePageResponse, error) + GetPage func(context.Context, *GetPageRequest) (*GetPageResponse, error) + ListPageActivity func(context.Context, *ListPageActivityRequest) (*ListPageActivityResponse, error) + ListPages func(context.Context, *ListPagesRequest) (*ListPagesResponse, error) + UpdatePage func(context.Context, *UpdatePageRequest) (*UpdatePageResponse, error)