api

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIndexInfo added in v0.8.0

func GetIndexInfo(c *fiber.Ctx) error

func GetIndexed added in v0.8.0

func GetIndexed(c *fiber.Ctx) error

func SearchOnChatByGet added in v0.8.0

func SearchOnChatByGet(c *fiber.Ctx) error

func SearchOnChatByPost added in v0.8.0

func SearchOnChatByPost(c *fiber.Ctx) error

func SearchOnMultiChatByPost added in v0.8.0

func SearchOnMultiChatByPost(c *fiber.Ctx) error

func Serve

func Serve(addr string)

Types

type SearchOnChatByPostRequest added in v0.8.0

type SearchOnChatByPostRequest struct {
	Query  string   `json:"query" validate:"required"`
	Offset int64    `json:"offset" default:"0"`
	Limit  int64    `json:"limit" default:"10"`
	Users  []int64  `json:"users,omitempty"`
	Types  []string `json:"types,omitempty"`
}

type SearchOnMultiChatByPostRequest added in v0.8.0

type SearchOnMultiChatByPostRequest struct {
	ChatIDs []int64  `json:"chat_ids"`
	Query   string   `json:"query" validate:"required"`
	Offset  int64    `json:"offset" default:"0"`
	Limit   int64    `json:"limit" default:"10"`
	Users   []int64  `json:"users,omitempty"`
	Types   []string `json:"types,omitempty"`
}

Jump to

Keyboard shortcuts

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