store

package
v0.0.0-...-3b64ee1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 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 Message

type Message struct {
	Id    int64
	Sent  time.Time
	Text  string
	Phone string
}

type SearchRequest

type SearchRequest struct {
	Limit  byte
	Offset *byte
	Phone  *string
	From   *time.Time
	To     *time.Time
}

type Store

type Store interface {
	AddOutgoingMessage(m Message) (int64, error)
	GetOutgoingMessage(id int64) (Message, error)

	GetIncomingMessages(from time.Time, to time.Time) ([]Message, error)

	AddIncomingMessage(m Message) error
	GetOutgoingMessages(s SearchRequest) ([]Message, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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