model

package
v0.0.0-...-064c1f2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const FizzbuzzTweetTableName = "fizzbuzz_tweets"

FizzbuzzTweetTableName is fizzbuzz tweet table name.

View Source
const PostErrorTableName = "post_errors"

PostErrorTableName is tweet post error log table name.

Variables

This section is empty.

Functions

This section is empty.

Types

type FizzbuzzTweet

type FizzbuzzTweet struct {
	Number         uint64
	IsFizz         bool
	IsBuzz         bool
	Tweet          string
	TwitterTweetID uint64
	UpdatedAt      time.Time
	CreatedAt      time.Time
}

FizzbuzzTweet is fizzbuzz tweet object.

type FizzbuzzTweetService

type FizzbuzzTweetService interface {
	LatestTweet() (*FizzbuzzTweet, error)
	Insert(ft *FizzbuzzTweet) error
	AddTwitterTweetID(twitterTweetID, number uint64) error
}

FizzbuzzTweetService is service interface.

type PostError

type PostError struct {
	ID                  uint64
	FizzbuzzTweetNumber uint64
	ErrorMessage        string
	UpdatedAt           time.Time
	CreatedAt           time.Time
}

PostError is post error log.

type PostErrorService

type PostErrorService interface {
	Insert(pe *PostError) (uint64, error)
}

PostErrorService is service interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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