datautils

package
v0.0.0-demo Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource map[string]interface{}

Resource represents the resource as it exists in the persistence layer this is very similar to models.Resource, but COULD vary, so we should keep them separated

func NewResource

func NewResource(data map[string]interface{}) Resource

NewResource creates a new resource instance

func (*Resource) GetS

func (d *Resource) GetS(key string) string

GetS returns the string value at key

func (*Resource) ID

func (d *Resource) ID() string

ID returns the documents identifier

func (*Resource) String

func (d *Resource) String() string

Jump to

Keyboard shortcuts

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