account

package
v0.0.0-...-406b088 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	OldUserName             string
	NewUserName             string
	UID                     string
	Email                   string
	HasArchive              bool
	DisableComments         bool
	RestoreCommentsAndLikes bool
	Feeds                   struct {
		Posts    feedIDs
		Comments feedIDs
		Likes    feedIDs
	}
}

Account reflects account and archive properties of user

func (*Account) IsExists

func (a *Account) IsExists() bool

IsExists returns true if account exists in new Freefeed

type Store

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

Store is a db fetcher and cache of accounts

func NewStore

func NewStore(db *sql.DB) *Store

NewStore returns a new Store instance

func (*Store) Get

func (s *Store) Get(oldUserName string) *Account

Get returns Account by old user's username. Get always returns not-nil value even if account does not exists in DB.

Jump to

Keyboard shortcuts

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