config

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UndefAddress = Address(address.Undef)
View Source
var UndefCID = CID(cid.Undef)

Functions

This section is empty.

Types

type Address

type Address address.Address

func (*Address) Address

func (a *Address) Address() address.Address

func (*Address) Empty

func (a *Address) Empty() bool

func (Address) MarshalTOML

func (a Address) MarshalTOML() ([]byte, error)

func (Address) String

func (a Address) String() string

func (*Address) UnmarshalTOML

func (a *Address) UnmarshalTOML(in interface{}) error

type BatchReplaceConfig

type BatchReplaceConfig struct {
	BlockTime string
	From      Address
	Selectors []Selector
}

type CID

type CID cid.Cid

func (*CID) Cid

func (c *CID) Cid() cid.Cid

func (CID) MarshalTOML

func (c CID) MarshalTOML() ([]byte, error)

func (CID) String

func (c CID) String() string

func (*CID) UnmarshalTOML

func (c *CID) UnmarshalTOML(in interface{}) error

type Config

type Config struct {
	Venus        VenusConfig
	Messager     MessagerConfig
	BatchReplace BatchReplaceConfig
}

func DefaultConfig

func DefaultConfig() *Config

type ConnectConfig

type ConnectConfig struct {
	URL   string
	Token string
}

type MessagerConfig

type MessagerConfig struct {
	ConnectConfig
}

type Selector

type Selector struct {
	ActorCode CID
	Methods   []int
}

type VenusConfig

type VenusConfig struct {
	ConnectConfig
}

Jump to

Keyboard shortcuts

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