document

package
v0.0.0-...-b290479 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	ID        string    `json:"id"`
	Title     string    `json:"title"`
	Body      string    `json:"body"`
	CreatedBy string    `json:"createdBy"`
	UpdatedBy string    `json:"updatedBy"`
	Created   time.Time `json:"created"`
	Updated   time.Time `json:"updated"`
}

func NewDocument

func NewDocument(t, b, u, id string) *Document

func (*Document) UpdateDocument

func (d *Document) UpdateDocument(dc *DocumentChange)

type DocumentChange

type DocumentChange struct {
	Title     string `json:"title"`
	Body      string `json:"body"`
	UpdatedBy string `json:"updatedBy"`
}

Jump to

Keyboard shortcuts

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