app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceWriteConfig

func ForceWriteConfig(cfg *Config) error

Types

type App

type App struct {
	Config   Config
	Job      chan Job
	Progress *Progress
}

func New

func New() *App

type Config

type Config struct {
	Port     string
	Profiles map[string]Profile
}

type Job

type Job struct {
	Profile string
	Type    JobType
	ID      string
}

type JobType

type JobType int
const (
	Reaction JobType = iota + 1
	ReactionFull
	Emoji
)

func (JobType) String

func (j JobType) String() string

type Profile

type Profile struct {
	I        string
	UserId   string
	UserName string
	Host     string
}

type Progress

type Progress struct {
	sync.RWMutex
	Progress int
	Total    int
	Done     bool
}

Jump to

Keyboard shortcuts

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