blogimpl

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawBlogPost

type RawBlogPost struct {
	weaver.AutoMarshal
	Id        uint64
	CreatorId uint64
	CreatedAt int64
	Title     string
	Content   string
}

func (*RawBlogPost) WeaverMarshal

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

func (*RawBlogPost) WeaverUnmarshal

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

type RawForumContent

type RawForumContent struct {
	weaver.AutoMarshal
	Id        uint64
	CreatorId uint64
	CreatedAt int64
	Text      string
}

func (*RawForumContent) WeaverMarshal

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

func (*RawForumContent) WeaverUnmarshal

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

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 RemoteBlogService

type RemoteBlogService interface {
	CreatePost(ctx context.Context, blogId uint64, userId uint64, title string, content string) (uint64, error)
	GetPost(ctx context.Context, blogId uint64, postId uint64) (RawBlogPost, error)
	GetPosts(ctx context.Context, blogId uint64, start uint64, end uint64, filter string) (uint64, []RawBlogPost, error)
	Delete(ctx context.Context, blogId uint64, postId uint64) error
}

type RemoteForumService

type RemoteForumService interface {
	CreateThread(ctx context.Context, objectId uint64, userId uint64, title string, message string) (uint64, error)
	CreateMessage(ctx context.Context, objectId uint64, userId uint64, threadId uint64, message string) error
	GetThread(ctx context.Context, objectId uint64, threadId uint64, start uint64, end uint64, filter string) (uint64, RawForumContent, []RawForumContent, error)
	GetThreads(ctx context.Context, objectId uint64, start uint64, end uint64, filter string) (uint64, []RawForumContent, error)
	DeleteThread(ctx context.Context, containerId uint64, id uint64) error
	DeleteMessage(ctx context.Context, containerId uint64, id uint64) error
}

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