rt

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 106

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSingletonActor

func IsSingletonActor(a VMActor) bool

IsSingletonActor returns true if the actor is a singleton actor (i.e., cannot be constructed).

Types

type LogLevel

type LogLevel int

Specifies importance of message, LogLevel numbering is consistent with the uber-go/zap package.

const (
	// DebugLevel logs are typically voluminous, and are usually disabled in
	// production.
	DEBUG LogLevel = iota - 1
	// InfoLevel is the default logging priority.
	INFO
	// WarnLevel logs are more important than Info, but don't need individual
	// human review.
	WARN
	// ErrorLevel logs are high-priority. If an application is running smoothly,
	// it shouldn't generate any error-level logs.
	ERROR
)

type VMActor

type VMActor interface {
	// Exports returns a slice of methods exported by this actor, indexed by
	// method number. Skipped/deprecated method numbers will be nil.
	Exports() []interface{}

	// Code returns the code ID for this actor.
	Code() cid.Cid

	// State returns a new State object for this actor. This can be used to
	// decode the actor's state.
	State() cbor.Er
}

VMActor is a concrete implementation of an actor, to be used by a Filecoin VM.

Jump to

Keyboard shortcuts

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