server

package
v0.0.0-...-aa1e05c Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package server implements server for BlogService

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve()

Serve starts the server for BlogService

Types

type BlogItem

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

BlogItem struct holds the blog bson object

Jump to

Keyboard shortcuts

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