OPQBot

package module
v2.0.0-...-2f972be Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	ApiUrl *url.URL

	MaxRetryCount int
	// contains filtered or unexported fields
}

func NewCore

func NewCore(api string, maxRetryCount int, middleCallFunc ...func(builder *apiBuilder.Builder) bool) (*Core, error)

func (*Core) HandlePanic

func (c *Core) HandlePanic(h func(any))

func (*Core) ListenAndWait

func (c *Core) ListenAndWait(ctx context.Context) (e error)

func (*Core) On

func (c *Core) On(event events.EventName, callback events.EventCallbackFunc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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