cached

package
v0.42.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cached contains cached query helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountGetThemes

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

func NewAccountGetThemes

func NewAccountGetThemes(raw *tg.Client, initial *tg.AccountGetThemesRequest) *AccountGetThemes

NewAccountGetThemes creates new AccountGetThemes.

func (*AccountGetThemes) Fetch

func (s *AccountGetThemes) Fetch(ctx context.Context) (bool, error)

Fetch updates data if needed and returns true if data was modified.

func (*AccountGetThemes) Get

Get updates data if needed and returns it.

func (*AccountGetThemes) Hash

func (s *AccountGetThemes) Hash() int

Hash returns last received hash.

func (*AccountGetThemes) Value

func (s *AccountGetThemes) Value() *tg.AccountThemes

Value returns last received result. NB: May be nil. Returned AccountThemes must not be mutated.

type AccountGetWallPapers

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

func NewAccountGetWallPapers

func NewAccountGetWallPapers(raw *tg.Client) *AccountGetWallPapers

NewAccountGetWallPapers creates new AccountGetWallPapers.

func (*AccountGetWallPapers) Fetch

func (s *AccountGetWallPapers) Fetch(ctx context.Context) (bool, error)

Fetch updates data if needed and returns true if data was modified.

func (*AccountGetWallPapers) Get

Get updates data if needed and returns it.

func (*AccountGetWallPapers) Hash

func (s *AccountGetWallPapers) Hash() int

Hash returns last received hash.

func (*AccountGetWallPapers) Value

Value returns last received result. NB: May be nil. Returned AccountWallPapers must not be mutated.

type ContactsGetContacts

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

func NewContactsGetContacts

func NewContactsGetContacts(raw *tg.Client) *ContactsGetContacts

NewContactsGetContacts creates new ContactsGetContacts.

func (*ContactsGetContacts) Fetch

func (s *ContactsGetContacts) Fetch(ctx context.Context) (bool, error)

Fetch updates data if needed and returns true if data was modified.

func (*ContactsGetContacts) Get

Get updates data if needed and returns it.

func (*ContactsGetContacts) Hash

func (s *ContactsGetContacts) Hash() int

Hash returns last received hash.

func (*ContactsGetContacts) Value

Value returns last received result. NB: May be nil. Returned ContactsContacts must not be mutated.

type HelpGetCountriesList

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

func NewHelpGetCountriesList

func NewHelpGetCountriesList(raw *tg.Client, initial *tg.HelpGetCountriesListRequest) *HelpGetCountriesList

NewHelpGetCountriesList creates new HelpGetCountriesList.

func (*HelpGetCountriesList) Fetch

func (s *HelpGetCountriesList) Fetch(ctx context.Context) (bool, error)

Fetch updates data if needed and returns true if data was modified.

func (*HelpGetCountriesList) Get

Get updates data if needed and returns it.

func (*HelpGetCountriesList) Hash

func (s *HelpGetCountriesList) Hash() int

Hash returns last received hash.

func (*HelpGetCountriesList) Value

Value returns last received result. NB: May be nil. Returned HelpCountriesList must not be mutated.

type HelpGetPassportConfig

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

func NewHelpGetPassportConfig

func NewHelpGetPassportConfig(raw *tg.Client) *HelpGetPassportConfig

NewHelpGetPassportConfig creates new HelpGetPassportConfig.

func (*HelpGetPassportConfig) Fetch

func (s *HelpGetPassportConfig) Fetch(ctx context.Context) (bool, error)

Fetch updates data if needed and returns true if data was modified.

func (*HelpGetPassportConfig) Get

Get updates data if needed and returns it.

func (*HelpGetPassportConfig) Hash

func (s *HelpGetPassportConfig) Hash() int

Hash returns last received hash.

func (*HelpGetPassportConfig) Value

Value returns last received result. NB: May be nil. Returned HelpPassportConfig must not be mutated.

type MessagesGetAllStickers

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

func NewMessagesGetAllStickers

func NewMessagesGetAllStickers(raw *tg.Client) *MessagesGetAllStickers

NewMessagesGetAllStickers creates new MessagesGetAllStickers.

func (*MessagesGetAllStickers) Fetch

func (s *MessagesGetAllStickers) Fetch(ctx context.Context) (bool, error)

Fetch updates data if needed and returns true if data was modified.

func (*MessagesGetAllStickers) Get

Get updates data if needed and returns it.

func (*MessagesGetAllStickers) Hash

func (s *MessagesGetAllStickers) Hash() int

Hash returns last received hash.

func (*MessagesGetAllStickers) Value

Value returns last received result. NB: May be nil. Returned MessagesAllStickers must not be mutated.

type MessagesGetFavedStickers

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

func NewMessagesGetFavedStickers

func NewMessagesGetFavedStickers(raw *tg.Client) *MessagesGetFavedStickers

NewMessagesGetFavedStickers creates new MessagesGetFavedStickers.

func (*MessagesGetFavedStickers) Fetch

Fetch updates data if needed and returns true if data was modified.

func (*MessagesGetFavedStickers) Get

Get updates data if needed and returns it.

func (*MessagesGetFavedStickers) Hash

func (s *MessagesGetFavedStickers) Hash() int

Hash returns last received hash.

func (*MessagesGetFavedStickers) Value

Value returns last received result. NB: May be nil. Returned MessagesFavedStickers must not be mutated.

type MessagesGetFeaturedStickers

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

func NewMessagesGetFeaturedStickers

func NewMessagesGetFeaturedStickers(raw *tg.Client) *MessagesGetFeaturedStickers

NewMessagesGetFeaturedStickers creates new MessagesGetFeaturedStickers.

func (*MessagesGetFeaturedStickers) Fetch

Fetch updates data if needed and returns true if data was modified.

func (*MessagesGetFeaturedStickers) Get

Get updates data if needed and returns it.

func (*MessagesGetFeaturedStickers) Hash

func (s *MessagesGetFeaturedStickers) Hash() int

Hash returns last received hash.

func (*MessagesGetFeaturedStickers) Value

Value returns last received result. NB: May be nil. Returned MessagesFeaturedStickers must not be mutated.

type MessagesGetMaskStickers

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

func NewMessagesGetMaskStickers

func NewMessagesGetMaskStickers(raw *tg.Client) *MessagesGetMaskStickers

NewMessagesGetMaskStickers creates new MessagesGetMaskStickers.

func (*MessagesGetMaskStickers) Fetch

Fetch updates data if needed and returns true if data was modified.

func (*MessagesGetMaskStickers) Get

Get updates data if needed and returns it.

func (*MessagesGetMaskStickers) Hash

func (s *MessagesGetMaskStickers) Hash() int

Hash returns last received hash.

func (*MessagesGetMaskStickers) Value

Value returns last received result. NB: May be nil. Returned MessagesAllStickers must not be mutated.

type MessagesGetRecentStickers

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

func NewMessagesGetRecentStickers

func NewMessagesGetRecentStickers(raw *tg.Client, initial *tg.MessagesGetRecentStickersRequest) *MessagesGetRecentStickers

NewMessagesGetRecentStickers creates new MessagesGetRecentStickers.

func (*MessagesGetRecentStickers) Fetch

Fetch updates data if needed and returns true if data was modified.

func (*MessagesGetRecentStickers) Get

Get updates data if needed and returns it.

func (*MessagesGetRecentStickers) Hash

func (s *MessagesGetRecentStickers) Hash() int

Hash returns last received hash.

func (*MessagesGetRecentStickers) Value

Value returns last received result. NB: May be nil. Returned MessagesRecentStickers must not be mutated.

type MessagesGetSavedGifs

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

func NewMessagesGetSavedGifs

func NewMessagesGetSavedGifs(raw *tg.Client) *MessagesGetSavedGifs

NewMessagesGetSavedGifs creates new MessagesGetSavedGifs.

func (*MessagesGetSavedGifs) Fetch

func (s *MessagesGetSavedGifs) Fetch(ctx context.Context) (bool, error)

Fetch updates data if needed and returns true if data was modified.

func (*MessagesGetSavedGifs) Get

Get updates data if needed and returns it.

func (*MessagesGetSavedGifs) Hash

func (s *MessagesGetSavedGifs) Hash() int

Hash returns last received hash.

func (*MessagesGetSavedGifs) Value

Value returns last received result. NB: May be nil. Returned MessagesSavedGifs must not be mutated.

type MessagesGetStickers

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

func NewMessagesGetStickers

func NewMessagesGetStickers(raw *tg.Client, initial *tg.MessagesGetStickersRequest) *MessagesGetStickers

NewMessagesGetStickers creates new MessagesGetStickers.

func (*MessagesGetStickers) Fetch

func (s *MessagesGetStickers) Fetch(ctx context.Context) (bool, error)

Fetch updates data if needed and returns true if data was modified.

func (*MessagesGetStickers) Get

Get updates data if needed and returns it.

func (*MessagesGetStickers) Hash

func (s *MessagesGetStickers) Hash() int

Hash returns last received hash.

func (*MessagesGetStickers) Value

Value returns last received result. NB: May be nil. Returned MessagesStickers must not be mutated.

type MessagesSearchStickerSets

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

func NewMessagesSearchStickerSets

func NewMessagesSearchStickerSets(raw *tg.Client, initial *tg.MessagesSearchStickerSetsRequest) *MessagesSearchStickerSets

NewMessagesSearchStickerSets creates new MessagesSearchStickerSets.

func (*MessagesSearchStickerSets) Fetch

Fetch updates data if needed and returns true if data was modified.

func (*MessagesSearchStickerSets) Get

Get updates data if needed and returns it.

func (*MessagesSearchStickerSets) Hash

func (s *MessagesSearchStickerSets) Hash() int

Hash returns last received hash.

func (*MessagesSearchStickerSets) Value

Value returns last received result. NB: May be nil. Returned MessagesFoundStickerSets must not be mutated.

Jump to

Keyboard shortcuts

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