app_banana_manager

package
v0.0.0-...-c954acd Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusComposingTweet = "ComposingTweet"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	app_base.BaseApp

	WWClient        ww.Client
	ChatStatusStore *ChatStatusStore
}

func SetupApp

func SetupApp(options *Options) (*App, error)

type ChatStatusStore

type ChatStatusStore struct {
	Status map[int64]Status
}

func NewChatStatusStore

func NewChatStatusStore() *ChatStatusStore

func (*ChatStatusStore) Get

func (s *ChatStatusStore) Get(chatID int64) Status

func (*ChatStatusStore) GetRaw

func (s *ChatStatusStore) GetRaw(chatID int64) (Status, bool)

func (*ChatStatusStore) Set

func (s *ChatStatusStore) Set(chatID int64, status Status)

func (*ChatStatusStore) Unset

func (s *ChatStatusStore) Unset(chatID int64)

type Options

type Options struct {
	app_base.BaseOptions

	MockWWClient bool
	WWHost       string
	WWToken      string
}

type Status

type Status string

Jump to

Keyboard shortcuts

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