blogger

package
v0.0.0-...-9b96da2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogAdmin

type BlogAdmin interface {
	CreateBlog(request *gen.BlogRequest) (*gen.Blog, error)
	GetBlog(id int64) *gen.Blog
	UpdateBlog(request *gen.BlogRequest) (*gen.Blog, error)
	DeleteBlog(id int64) error
}

type MemoryBlog

type MemoryBlog struct {
}

func (*MemoryBlog) CreateBlog

func (m *MemoryBlog) CreateBlog(r *gen.BlogRequest) (*gen.Blog, error)

func (*MemoryBlog) DeleteBlog

func (m *MemoryBlog) DeleteBlog(id int64) error

func (*MemoryBlog) GetBlog

func (m *MemoryBlog) GetBlog(id int64) *gen.Blog

func (*MemoryBlog) UpdateBlog

func (m *MemoryBlog) UpdateBlog(r *gen.BlogRequest) (*gen.Blog, error)

Jump to

Keyboard shortcuts

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