contacts

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

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	IdentityKey string `storm:"id"`
}

type ContactAllCall

type ContactAllCall struct {
	// contains filtered or unexported fields
}

func NewContactAllCall

func NewContactAllCall(db *Storage) *ContactAllCall

func (*ContactAllCall) CallID

func (c *ContactAllCall) CallID() string

func (*ContactAllCall) Handle

func (c *ContactAllCall) Handle(data map[string]interface{}) (map[string]interface{}, error)

func (*ContactAllCall) Validate

func (c *ContactAllCall) Validate(map[string]interface{}) error

type ContactCreateCall

type ContactCreateCall struct {
	// contains filtered or unexported fields
}

func NewContactCreateCall

func NewContactCreateCall(s *Storage) *ContactCreateCall

func (*ContactCreateCall) CallID

func (c *ContactCreateCall) CallID() string

func (*ContactCreateCall) Handle

func (c *ContactCreateCall) Handle(data map[string]interface{}) (map[string]interface{}, error)

func (*ContactCreateCall) Validate

func (c *ContactCreateCall) Validate(map[string]interface{}) error

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(db *storm.DB) *Storage

func (*Storage) All

func (s *Storage) All() ([]*Contact, error)

func (*Storage) Save

func (s *Storage) Save(d *Contact) error

Jump to

Keyboard shortcuts

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