Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdHandler ¶
type CmdHandler struct {
// contains filtered or unexported fields
}
func NewCmdHandler ¶
func NewCmdHandler( sdApi *sdapi.SdAPIType, reqQueue *reqqueue.ReqQueue, generationDefaults config.GenerationDefaults, userService userservice.UserService, ) *CmdHandler
func (*CmdHandler) AddHandlers ¶
func (c *CmdHandler) AddHandlers( bot *telegram.SDBot, )
func (*CmdHandler) GetDefaultHandler ¶
func (c *CmdHandler) GetDefaultHandler() bot.HandlerFunc
type WriteCounter ¶
type WriteCounter struct { Ctx context.Context GotBytes int64 TotalBytes int64 ProgressPrintInterval time.Duration LastProgressPrintAt time.Time // contains filtered or unexported fields }
WriteCounter counts the number of bytes written to it. It implements to the io.Writer interface and we can pass this into io.TeeReader() which will report progress on each write cycle.
Click to show internal directories.
Click to hide internal directories.