wikiimpl

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawWikiContent

type RawWikiContent struct {
	weaver.AutoMarshal
	Version   uint64
	CreatorId uint64
	CreatedAt int64
	Markdown  string
}

func (*RawWikiContent) WeaverMarshal

func (x *RawWikiContent) WeaverMarshal(enc *codegen.Encoder)

func (*RawWikiContent) WeaverUnmarshal

func (x *RawWikiContent) WeaverUnmarshal(dec *codegen.Decoder)

type RemoteWikiService

type RemoteWikiService interface {
	Load(ctx context.Context, wikiId uint64, wikiRef string, version uint64) (RawWikiContent, error)
	Store(ctx context.Context, wikiId uint64, userId uint64, wikiRef string, last uint64, markdown string) error
	GetVersions(ctx context.Context, wikiId uint64, wikiRef string) ([]RawWikiContent, error)
	Delete(ctx context.Context, wikiId uint64, wikiRef string, version uint64) error
}

Jump to

Keyboard shortcuts

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