bot

package
v0.0.0-...-98a09a2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert interface {
	Send(string) error
}

type Execution

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

Execution

func (*Execution) Alert

func (s *Execution) Alert(a Alert)

func (*Execution) Name

func (s *Execution) Name() string

Name

func (*Execution) Start

func (s *Execution) Start(ctx context.Context) error

Start starts the server

func (*Execution) Stop

func (s *Execution) Stop() error

Stop stops the server

type Server

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

Server is the iotex server instance containing all components.

func NewServer

func NewServer(cfg config.Config) (*Server, error)

NewServer creates a new server

func (*Server) Register

func (s *Server) Register(ss ...Service) error

Stop stops the server

func (*Server) RegisterAlert

func (s *Server) RegisterAlert(alert Alert) error

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the server

func (*Server) Stop

func (s *Server) Stop() error

Stop stops the server

type Service

type Service interface {
	Start(ctx context.Context) error
	Stop() error
	Name() string
	Alert(a Alert)
}

func NewExecution

func NewExecution(cfg config.Config, name string) (Service, error)

NewTransfer

func NewTransfer

func NewTransfer(cfg config.Config, name string) (Service, error)

NewTransfer

func NewXrc20

func NewXrc20(cfg config.Config, name string) (Service, error)

NewTransfer

type Transfer

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

Transfer

func (*Transfer) Alert

func (s *Transfer) Alert(a Alert)

func (*Transfer) Name

func (s *Transfer) Name() string

Name

func (*Transfer) Start

func (s *Transfer) Start(ctx context.Context) error

Start starts the server

func (*Transfer) Stop

func (s *Transfer) Stop() error

Stop stops the server

type Xrc20

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

Xrc20

func (*Xrc20) Alert

func (s *Xrc20) Alert(a Alert)

func (*Xrc20) Name

func (s *Xrc20) Name() string

Name

func (*Xrc20) Start

func (s *Xrc20) Start(ctx context.Context) error

Start starts the server

func (*Xrc20) Stop

func (s *Xrc20) Stop() error

Stop stops the server

Jump to

Keyboard shortcuts

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