Discover Packages
github.com/jcgregorio/stream-run
entries
package
Version:
v0.0.0-...-eb2553f
Opens a new window with list of versions in this module.
Published: Jun 17, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type Entries
New(ctx, project, ns, log)
(e) Delete(ctx, id)
(e) Get(ctx, id)
(e) Insert(ctx, content, title)
(e) List(ctx, n, offset)
(e) Update(ctx, entry)
type Entry
Source Files
Documentation Source Files Index Constants Variables Functions Types type Entries type Entry New(ctx, project, ns, log) (e) Delete(ctx, id) (e) Get(ctx, id) (e) Insert(ctx, content, title) (e) List(ctx, n, offset) (e) Update(ctx, entry)
Documentation
¶
Constants
type Entries
func (e *Entries) Delete(ctx context.Context, id string) error
func (e *Entries) Get(ctx context.Context, id string) (*Entry, error)
func (e *Entries) Insert(ctx context.Context, content, title string) (string, error)
func (e *Entries) List(ctx context.Context, n int, offset int) ([]*Entry, error)
func (e *Entries) Update(ctx context.Context, entry *Entry) error
type Entry
type Entries struct {
DS *ds .DS
}
type Entry struct {
Title string `datastore:"title,noindex"`
Content string `datastore:"content,noindex"`
ID string `datastore:"-"`
Created time .Time `datastore:"created"`
Updated time .Time `datastore:"updated"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.