Documentation ¶
Index ¶
- Constants
- func ArchiveViewHandler(client ClientContext) func(c *fiber.Ctx) error
- func Auth(ctx ClientContext) func(c *fiber.Ctx) error
- func IndexHandler(client ClientContext) func(c *fiber.Ctx) error
- func MakeUserKey(ui *tgauth.UserInfo) string
- func MakeUserKeyFromUserNameAndId(userName string, userId int64) string
- func SearchHandler(client ClientContext) func(ctx *fiber.Ctx) error
- func TrackUntrackArchiveHandler(client ClientContext, actionType ActionType) func(ctx *fiber.Ctx) error
- type ActionType
- type ClientContext
- type SearchResultEntry
- type TrackedEntry
Constants ¶
View Source
const ( StaticPrefix = "/static/" Login = "/login" CheckAuth = "/check-auth" )
Variables ¶
This section is empty.
Functions ¶
func ArchiveViewHandler ¶
func ArchiveViewHandler(client ClientContext) func(c *fiber.Ctx) error
func Auth ¶
func Auth(ctx ClientContext) func(c *fiber.Ctx) error
func IndexHandler ¶
func IndexHandler(client ClientContext) func(c *fiber.Ctx) error
func MakeUserKey ¶
func SearchHandler ¶
func SearchHandler(client ClientContext) func(ctx *fiber.Ctx) error
func TrackUntrackArchiveHandler ¶
func TrackUntrackArchiveHandler(client ClientContext, actionType ActionType) func(ctx *fiber.Ctx) error
Types ¶
type ClientContext ¶
type ClientContext struct { RpcClient rpc.ClientInterface Auth *tgauth.TelegramAuth Opts *common.Options }
func CreateTestingApp ¶
func CreateTestingApp() (*fiber.App, ClientContext)
type SearchResultEntry ¶
type SearchResultEntry struct { Entry *proto.FoundEntry Tracked bool }
func (*SearchResultEntry) GetEntryClass ¶
func (entry *SearchResultEntry) GetEntryClass() string
func (*SearchResultEntry) GetUrl ¶
func (entry *SearchResultEntry) GetUrl() string
type TrackedEntry ¶
type TrackedEntry struct {
Entry *proto.TrackedEntry
}
func GetTrackedEntries ¶
func GetTrackedEntries(client ClientContext, userInfo *tgauth.UserInfo) ([]TrackedEntry, error)
func (*TrackedEntry) GetEntryClass ¶
func (entry *TrackedEntry) GetEntryClass() string
func (*TrackedEntry) GetUrl ¶
func (entry *TrackedEntry) GetUrl() string
Click to show internal directories.
Click to hide internal directories.