fortest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestBOTAPI

type TestBOTAPI struct {
}

func NewTESTBOTAPI

func NewTESTBOTAPI() *TestBOTAPI

func (*TestBOTAPI) AnswereCallbackCtx

func (t *TestBOTAPI) AnswereCallbackCtx(ctx context.Context, Callbackanswere *botapi.Callbackanswere) error

func (*TestBOTAPI) Createkeyboard

func (t *TestBOTAPI) Createkeyboard(keyboard *botapi.InlineKeyboardMarkup) ([]byte, error)

func (*TestBOTAPI) GetchatmemberCtx

func (t *TestBOTAPI) GetchatmemberCtx(ctx context.Context, Userid int64, Chatid int64) (*tgbotapi.ChatMember, bool, error)

func (*TestBOTAPI) Makerequest

func (t *TestBOTAPI) Makerequest(ctx context.Context, s, srt string, readcloser io.ReadCloser) (*tgbotapi.APIResponse, error)

func (*TestBOTAPI) Send

func (t *TestBOTAPI) Send(msg *botapi.Msgcommon) (*tgbotapi.Message, error)

func (*TestBOTAPI) SendContext

func (t *TestBOTAPI) SendContext(ctx context.Context, msg *botapi.Msgcommon) (*tgbotapi.Message, error)

type TestSboxStruct

type TestSboxStruct struct {
}

func Newtestsbox

func Newtestsbox() *TestSboxStruct

func (*TestSboxStruct) AddInboud

func (t *TestSboxStruct) AddInboud()

func (*TestSboxStruct) AddInbound

func (t *TestSboxStruct) AddInbound() error

func (*TestSboxStruct) AddOutbound

func (t *TestSboxStruct) AddOutbound() error

func (*TestSboxStruct) AddUser

func (t *TestSboxStruct) AddUser(user *sbox.Userconfig) (*sbox.Sboxstatus, error)

func (*TestSboxStruct) Close

func (t *TestSboxStruct) Close() error

func (*TestSboxStruct) GetAllInbound

func (t *TestSboxStruct) GetAllInbound() ([]sbox.Inboud, error)

func (*TestSboxStruct) GetAllOutbound

func (t *TestSboxStruct) GetAllOutbound() ([]sbox.Outbound, error)

func (*TestSboxStruct) GetStatus

func (t *TestSboxStruct) GetStatus(user *sbox.Userconfig) (*sbox.Sboxstatus, error)

Do not going to update database usage it will automaticaly doing by watchman

func (*TestSboxStruct) InboundStatus

func (t *TestSboxStruct) InboundStatus(tag string) error

func (*TestSboxStruct) OutboundStatus

func (t *TestSboxStruct) OutboundStatus(string) error

func (*TestSboxStruct) RemoveInboud

func (t *TestSboxStruct) RemoveInboud() error

func (*TestSboxStruct) RemoveOutboud

func (t *TestSboxStruct) RemoveOutboud() error

func (*TestSboxStruct) RemoveUser

func (t *TestSboxStruct) RemoveUser(user *sbox.Userconfig) (*sbox.Sboxstatus, error)

func (*TestSboxStruct) ShareLinkEncode

func (t *TestSboxStruct) ShareLinkEncode(user *sbox.Userconfig, str string) (string, error)

func (*TestSboxStruct) Start

func (t *TestSboxStruct) Start() error

Jump to

Keyboard shortcuts

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