wiki

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_services_wiki_wiki_proto protoreflect.FileDescriptor
View Source
var PermsRemap = map[string]string{

	"WikiService/GetPage": "WikiService/ListPages",
}
View Source
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

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

Cause function returns cause value.

func (CreatePageRequestValidationError) Error

Error satisfies the builtin error interface

func (CreatePageRequestValidationError) ErrorName

ErrorName returns error name.

func (CreatePageRequestValidationError) Field

Field function returns field value.

func (CreatePageRequestValidationError) Key

Key function returns key value.

func (CreatePageRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreatePageResponseValidationError) Error

Error satisfies the builtin error interface

func (CreatePageResponseValidationError) ErrorName

ErrorName returns error name.

func (CreatePageResponseValidationError) Field

Field function returns field value.

func (CreatePageResponseValidationError) Key

Key function returns key value.

func (CreatePageResponseValidationError) Reason

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

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

Cause function returns cause value.

func (DeletePageRequestValidationError) Error

Error satisfies the builtin error interface

func (DeletePageRequestValidationError) ErrorName

ErrorName returns error name.

func (DeletePageRequestValidationError) Field

Field function returns field value.

func (DeletePageRequestValidationError) Key

Key function returns key value.

func (DeletePageRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeletePageResponseValidationError) Error

Error satisfies the builtin error interface

func (DeletePageResponseValidationError) ErrorName

ErrorName returns error name.

func (DeletePageResponseValidationError) Field

Field function returns field value.

func (DeletePageResponseValidationError) Key

Key function returns key value.

func (DeletePageResponseValidationError) Reason

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

Cause function returns cause value.

func (GetPageRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPageRequestValidationError) ErrorName

func (e GetPageRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetPageRequestValidationError) Field

Field function returns field value.

func (GetPageRequestValidationError) Key

Key function returns key value.

func (GetPageRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetPageResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPageResponseValidationError) ErrorName

func (e GetPageResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetPageResponseValidationError) Field

Field function returns field value.

func (GetPageResponseValidationError) Key

Key function returns key value.

func (GetPageResponseValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (ListPageActivityRequestValidationError) Error

Error satisfies the builtin error interface

func (ListPageActivityRequestValidationError) ErrorName

ErrorName returns error name.

func (ListPageActivityRequestValidationError) Field

Field function returns field value.

func (ListPageActivityRequestValidationError) Key

Key function returns key value.

func (ListPageActivityRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (ListPageActivityResponseValidationError) Error

Error satisfies the builtin error interface

func (ListPageActivityResponseValidationError) ErrorName

ErrorName returns error name.

func (ListPageActivityResponseValidationError) Field

Field function returns field value.

func (ListPageActivityResponseValidationError) Key

Key function returns key value.

func (ListPageActivityResponseValidationError) Reason

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

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

Cause function returns cause value.

func (ListPagesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListPagesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListPagesRequestValidationError) Field

Field function returns field value.

func (ListPagesRequestValidationError) Key

Key function returns key value.

func (ListPagesRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListPagesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListPagesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListPagesResponseValidationError) Field

Field function returns field value.

func (ListPagesResponseValidationError) Key

Key function returns key value.

func (ListPagesResponseValidationError) Reason

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 NewServer

func NewServer(p Params) *Server

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 (s *Server) GetPermsRemap() map[string]string

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 (s *Server) RegisterServer(srv *grpc.Server)

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) DeletePage

func (UnimplementedWikiServiceServer) GetPage

func (UnimplementedWikiServiceServer) ListPageActivity

func (UnimplementedWikiServiceServer) ListPages

func (UnimplementedWikiServiceServer) UpdatePage

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

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

Cause function returns cause value.

func (UpdatePageRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePageRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePageRequestValidationError) Field

Field function returns field value.

func (UpdatePageRequestValidationError) Key

Key function returns key value.

func (UpdatePageRequestValidationError) Reason

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

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

Cause function returns cause value.

func (UpdatePageResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdatePageResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdatePageResponseValidationError) Field

Field function returns field value.

func (UpdatePageResponseValidationError) Key

Key function returns key value.

func (UpdatePageResponseValidationError) Reason

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.

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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