blog

package
v0.0.0-...-32ef78b Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoCreateBlog

func DoCreateBlog(c blogpb.BlogServiceClient)

DoCreateBlog -

func DoDeleteBlog

func DoDeleteBlog(c blogpb.BlogServiceClient)

DoDeleteBlog -

func DoListBlog

func DoListBlog(c blogpb.BlogServiceClient)

DoListBlog -

func DoReadBlog

func DoReadBlog(c blogpb.BlogServiceClient)

DoReadBlog -

func DoUpdateBlog

func DoUpdateBlog(c blogpb.BlogServiceClient)

DoUpdateBlog -

Types

type Item

type Item struct {
	ID       primitive.ObjectID `bson:"_id,omitempty"`
	AuthorID string             `bson:"author_id"`
	Title    string             `bson:"title"`
	Content  string             `bson:"content"`
}

Item -

type Server

type Server struct {
	Coll *mongo.Collection
}

Server defines the blog server

func (*Server) CreateBlog

CreateBlog -

func (*Server) DeleteBlog

DeleteBlog -

func (*Server) ListBlog

ListBlog -

func (*Server) ReadBlog

ReadBlog -

func (*Server) UpdateBlog

UpdateBlog -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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