Documentation ¶
Index ¶
- type Infra
- func (infra *Infra) ArchiveNotes(ctx context.Context, profile, col, d string, p *pg.Pager) ([]model.Note, error)
- func (infra *Infra) Archives(ctx context.Context, profile string) ([]model.Month, error)
- func (infra *Infra) DB(profile string) *bun.DB
- func (infra *Infra) FileCount(ctx context.Context, profile string) (int, error)
- func (infra *Infra) Files(ctx context.Context, profile string, p *pg.Pager) ([]model.File, error)
- func (infra *Infra) GetEmoji(profile, name string) (*mi.Emoji, error)
- func (infra *Infra) GetJob() chan app.Job
- func (infra *Infra) GetPort() string
- func (infra *Infra) GetProfile(key string) (app.Profile, error)
- func (infra *Infra) GetProfileHost(key string) (string, error)
- func (infra *Infra) GetProfiles() *app.Profiles
- func (infra *Infra) GetProgress() (int, int)
- func (infra *Infra) GetProgressDone() bool
- func (infra *Infra) GetUserReactions(profile, id string, limit int) (int, *mi.Reactions, error)
- func (infra *Infra) HashTagNotes(ctx context.Context, profile, name string, p *pg.Pager) ([]model.Note, error)
- func (infra *Infra) HashTags(ctx context.Context, profile string) ([]model.HashTag, error)
- func (infra *Infra) Insert(ctx context.Context, profile string, r *mi.Reactions) int64
- func (infra *Infra) InsertEmoji(ctx context.Context, profile string, id int64, e *mi.Emoji)
- func (infra *Infra) InsertFromFile(ctx context.Context, profile string)
- func (infra *Infra) NoteCount(ctx context.Context, profile string) (int, error)
- func (infra *Infra) Notes(ctx context.Context, profile, s string, p *pg.Pager) ([]model.Note, error)
- func (infra *Infra) ReactionImageEmpty(ctx context.Context, profile string) ([]model.ReactionEmoji, error)
- func (infra *Infra) ReactionNotes(ctx context.Context, profile, name string, p *pg.Pager) ([]model.Note, error)
- func (infra *Infra) ReactionOne(ctx context.Context, profile, name string) (model.ReactionEmoji, error)
- func (infra *Infra) Reactions(ctx context.Context, profile string) ([]model.ReactionEmoji, error)
- func (infra *Infra) SetConfig(key string, prof app.Profile)
- func (infra *Infra) SetJob(j app.Job)
- func (infra *Infra) SetProgress(p, t int) (int, int)
- func (infra *Infra) SetProgressDone(d bool) bool
- func (infra *Infra) StoreConfig() error
- func (infra *Infra) UserNotes(ctx context.Context, profile, name string, p *pg.Pager) ([]model.Note, error)
- func (infra *Infra) Users(ctx context.Context, profile string) ([]model.User, error)
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 (*Infra) ArchiveNotes ¶
func (*Infra) GetProfile ¶ added in v0.0.3
func (*Infra) GetProfileHost ¶ added in v0.0.3
func (*Infra) GetProfiles ¶ added in v0.0.3
func (*Infra) GetProgress ¶
func (*Infra) GetProgressDone ¶
func (*Infra) GetUserReactions ¶ added in v0.0.3
func (*Infra) HashTagNotes ¶
func (*Infra) InsertEmoji ¶
func (*Infra) InsertFromFile ¶
func (*Infra) ReactionImageEmpty ¶
func (*Infra) ReactionNotes ¶
func (*Infra) ReactionOne ¶ added in v0.0.3
func (*Infra) SetProgressDone ¶
func (*Infra) StoreConfig ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.