Documentation ¶
Index ¶
- type FeedsFileRepository
- func (r *FeedsFileRepository) ForEach(f func(item *model.Feed2) bool)
- func (r *FeedsFileRepository) Get(uid string) *model.Feed2
- func (r *FeedsFileRepository) Remove(uid string)
- func (r *FeedsFileRepository) Start() error
- func (r *FeedsFileRepository) Stop()
- func (r *FeedsFileRepository) Store(f *model.Feed2)
- type FeedsRepository
- type ItemsMemoryRepo
- func (r *ItemsMemoryRepo) ChangeCallback() *callback.Callback[*model.Item]
- func (r *ItemsMemoryRepo) DeleteCallback() *callback.Callback[string]
- func (r *ItemsMemoryRepo) ForEach(f func(item *model.Item) bool)
- func (r *ItemsMemoryRepo) Get(uid string) *model.Item
- func (r *ItemsMemoryRepo) GetByCallsign(callsign string) *model.Item
- func (r *ItemsMemoryRepo) GetCallsign(uid string) string
- func (r *ItemsMemoryRepo) Remove(uid string)
- func (r *ItemsMemoryRepo) Start() error
- func (r *ItemsMemoryRepo) Stop()
- func (r *ItemsMemoryRepo) Store(i *model.Item)
- type ItemsRepository
- type UserFileRepository
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedsFileRepository ¶ added in v0.12.3
type FeedsFileRepository struct {
// contains filtered or unexported fields
}
func NewFeedsFileRepo ¶ added in v0.12.3
func NewFeedsFileRepo(basedir string) *FeedsFileRepository
func (*FeedsFileRepository) ForEach ¶ added in v0.12.3
func (r *FeedsFileRepository) ForEach(f func(item *model.Feed2) bool)
func (*FeedsFileRepository) Get ¶ added in v0.12.3
func (r *FeedsFileRepository) Get(uid string) *model.Feed2
func (*FeedsFileRepository) Remove ¶ added in v0.12.3
func (r *FeedsFileRepository) Remove(uid string)
func (*FeedsFileRepository) Start ¶ added in v0.12.3
func (r *FeedsFileRepository) Start() error
func (*FeedsFileRepository) Stop ¶ added in v0.12.3
func (r *FeedsFileRepository) Stop()
func (*FeedsFileRepository) Store ¶ added in v0.12.3
func (r *FeedsFileRepository) Store(f *model.Feed2)
type FeedsRepository ¶ added in v0.12.3
type ItemsMemoryRepo ¶ added in v0.12.3
type ItemsMemoryRepo struct {
// contains filtered or unexported fields
}
func NewItemsMemoryRepo ¶ added in v0.12.3
func NewItemsMemoryRepo(tm ...time.Duration) *ItemsMemoryRepo
func (*ItemsMemoryRepo) ChangeCallback ¶ added in v0.19.1
func (r *ItemsMemoryRepo) ChangeCallback() *callback.Callback[*model.Item]
func (*ItemsMemoryRepo) DeleteCallback ¶ added in v0.19.1
func (r *ItemsMemoryRepo) DeleteCallback() *callback.Callback[string]
func (*ItemsMemoryRepo) ForEach ¶ added in v0.12.3
func (r *ItemsMemoryRepo) ForEach(f func(item *model.Item) bool)
func (*ItemsMemoryRepo) Get ¶ added in v0.12.3
func (r *ItemsMemoryRepo) Get(uid string) *model.Item
func (*ItemsMemoryRepo) GetByCallsign ¶ added in v0.12.5
func (r *ItemsMemoryRepo) GetByCallsign(callsign string) *model.Item
func (*ItemsMemoryRepo) GetCallsign ¶ added in v0.12.5
func (r *ItemsMemoryRepo) GetCallsign(uid string) string
func (*ItemsMemoryRepo) Remove ¶ added in v0.12.3
func (r *ItemsMemoryRepo) Remove(uid string)
func (*ItemsMemoryRepo) Start ¶ added in v0.12.3
func (r *ItemsMemoryRepo) Start() error
func (*ItemsMemoryRepo) Stop ¶ added in v0.12.3
func (r *ItemsMemoryRepo) Stop()
func (*ItemsMemoryRepo) Store ¶ added in v0.12.3
func (r *ItemsMemoryRepo) Store(i *model.Item)
type ItemsRepository ¶
type UserFileRepository ¶
type UserFileRepository struct {
// contains filtered or unexported fields
}
func NewFileUserRepo ¶
func NewFileUserRepo(userFile string) *UserFileRepository
func (*UserFileRepository) CheckUserAuth ¶
func (r *UserFileRepository) CheckUserAuth(user, password string) bool
func (*UserFileRepository) GetUser ¶
func (r *UserFileRepository) GetUser(username string) *model.User
func (*UserFileRepository) Start ¶
func (r *UserFileRepository) Start() error
func (*UserFileRepository) Stop ¶
func (r *UserFileRepository) Stop()
func (*UserFileRepository) UserIsValid ¶
func (r *UserFileRepository) UserIsValid(user, sn string) bool
Click to show internal directories.
Click to hide internal directories.