state

package
v0.0.0-...-bd0960d Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Threads map[string]ThreadState
	// UserTimelineTail contains the id of the last tweet we've seen on user's timeline.
	UserTimelineTail map[string]string
}

func New

func New() *State

func (*State) CreateThread

func (state *State) CreateThread(id string) error

func (*State) Update

func (state *State) Update(cfg *common.Config) error

func (*State) UpdateThreads

func (state *State) UpdateThreads(authorID string, threads []string) error

func (*State) WalkThreadsUp

func (state *State) WalkThreadsUp(cfg *common.Config) error

type ThreadState

type ThreadState struct {
	Tweets []twitter.Tweet
}

func (*ThreadState) TweetChain

func (ts *ThreadState) TweetChain() []twitter.Tweet

func (*ThreadState) Update

func (ts *ThreadState) Update(tweets []twitter.Tweet)

Jump to

Keyboard shortcuts

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