infra

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Infra

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

func New

func New(a *app.App) *Infra

func (*Infra) ArchiveNotes

func (infra *Infra) ArchiveNotes(ctx context.Context, profile, col, d string, p *pg.Pager) ([]model.Note, error)

func (*Infra) Archives

func (infra *Infra) Archives(ctx context.Context, profile string) ([]model.Month, error)

func (*Infra) DB

func (infra *Infra) DB(profile string) *bun.DB

func (*Infra) FileCount

func (infra *Infra) FileCount(ctx context.Context, profile string) (int, error)

func (*Infra) Files

func (infra *Infra) Files(ctx context.Context, profile string, p *pg.Pager) ([]model.File, error)

func (*Infra) GetEmoji added in v0.0.3

func (infra *Infra) GetEmoji(profile, name string) (*mi.Emoji, error)

func (*Infra) GetJob

func (infra *Infra) GetJob() chan app.Job

func (*Infra) GetPort added in v0.0.3

func (infra *Infra) GetPort() string

func (*Infra) GetProfile added in v0.0.3

func (infra *Infra) GetProfile(key string) (app.Profile, error)

func (*Infra) GetProfileHost added in v0.0.3

func (infra *Infra) GetProfileHost(key string) (string, error)

func (*Infra) GetProfiles added in v0.0.3

func (infra *Infra) GetProfiles() *app.Profiles

func (*Infra) GetProgress

func (infra *Infra) GetProgress() (int, int)

func (*Infra) GetProgressDone

func (infra *Infra) GetProgressDone() bool

func (*Infra) GetUserReactions added in v0.0.3

func (infra *Infra) GetUserReactions(profile, id string, limit int) (int, *mi.Reactions, error)

func (*Infra) HashTagNotes

func (infra *Infra) HashTagNotes(ctx context.Context, profile, name string, p *pg.Pager) ([]model.Note, error)

func (*Infra) HashTags

func (infra *Infra) HashTags(ctx context.Context, profile string) ([]model.HashTag, error)

func (*Infra) Insert

func (infra *Infra) Insert(ctx context.Context, profile string, r *mi.Reactions) int64

func (*Infra) InsertEmoji

func (infra *Infra) InsertEmoji(ctx context.Context, profile string, id int64, e *mi.Emoji)

func (*Infra) InsertFromFile

func (infra *Infra) InsertFromFile(ctx context.Context, profile string)

func (*Infra) NoteCount

func (infra *Infra) NoteCount(ctx context.Context, profile string) (int, error)

func (*Infra) Notes

func (infra *Infra) Notes(ctx context.Context, profile, s string, p *pg.Pager) ([]model.Note, error)

func (*Infra) ReactionImageEmpty

func (infra *Infra) ReactionImageEmpty(ctx context.Context, profile string) ([]model.ReactionEmoji, error)

func (*Infra) ReactionNotes

func (infra *Infra) ReactionNotes(ctx context.Context, profile, name string, p *pg.Pager) ([]model.Note, error)

func (*Infra) ReactionOne added in v0.0.3

func (infra *Infra) ReactionOne(ctx context.Context, profile, name string) (model.ReactionEmoji, error)

func (*Infra) Reactions

func (infra *Infra) Reactions(ctx context.Context, profile string) ([]model.ReactionEmoji, error)

func (*Infra) SetConfig added in v0.0.3

func (infra *Infra) SetConfig(key string, prof app.Profile)

func (*Infra) SetJob

func (infra *Infra) SetJob(j app.Job)

func (*Infra) SetProgress

func (infra *Infra) SetProgress(p, t int) (int, int)

func (*Infra) SetProgressDone

func (infra *Infra) SetProgressDone(d bool) bool

func (*Infra) StoreConfig added in v0.0.3

func (infra *Infra) StoreConfig() error

func (*Infra) UserNotes

func (infra *Infra) UserNotes(ctx context.Context, profile, name string, p *pg.Pager) ([]model.Note, error)

func (*Infra) Users

func (infra *Infra) Users(ctx context.Context, profile string) ([]model.User, error)

Jump to

Keyboard shortcuts

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