bot

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execution

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

Execution defines a execution

func (*Execution) Name

func (s *Execution) Name() string

Name returns name

func (*Execution) Start

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

Start starts the server

func (*Execution) Stop

func (s *Execution) Stop()

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

Register register services

func (*Server) Start

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

Start starts the server

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

type Service

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

Service defines service interface

func NewExecution

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

NewExecution make a new execution

func NewTransfer

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

NewTransfer make new transfer

func NewXrc20

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

NewXrc20 make a new transfer

type Transfer

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

Transfer defines transfer struct

func (*Transfer) Name

func (s *Transfer) Name() string

Name returns name

func (*Transfer) Start

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

Start starts the server

func (*Transfer) Stop

func (s *Transfer) Stop()

Stop stops the server

type Xrc20

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

Xrc20 defines xrc20 struct

func (*Xrc20) Name

func (s *Xrc20) Name() string

Name returns name

func (*Xrc20) Start

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

Start starts the server

func (*Xrc20) Stop

func (s *Xrc20) Stop()

Stop stops the server

Jump to

Keyboard shortcuts

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