oracle

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeResponse added in v0.0.6

func DecodeResponse(resp *resty.Response) ([]byte, error)

func New

func New(
	exchange core.Exchange,
	client *mixin.Client,
	wallets core.WalletStore,
	subscribers core.SubscriberStore,
	system *core.System,
) worker.Worker

func Request added in v0.0.6

func Request(ctx context.Context) *resty.Request

func UnmarshalResponse added in v0.0.6

func UnmarshalResponse(resp *resty.Response, v interface{}) error

Types

type Error added in v0.0.6

type Error struct {
	Code int    `json:"code,omitempty"`
	Msg  string `json:"msg,omitempty"`
}

func (*Error) Error added in v0.0.6

func (err *Error) Error() string

type Oracle

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

func (*Oracle) OnMessage

func (m *Oracle) OnMessage(ctx context.Context, msg *mixin.MessageView, userID string) error

func (*Oracle) Run

func (m *Oracle) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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