migrator

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Code generated by rice embed-go; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var AN = zsw.AN
View Source
var ActN = zsw.ActN
View Source
var PN = zsw.PN

Functions

func NewExporter

func NewExporter(snapshotPath, dataDir string, opts ...Option) (*exporter, error)

func SN

func SN(in string) zsw.ScopeName

func TN

func TN(in string) zsw.TableName

Types

type Account

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

func (*Account) SetLogger

func (a *Account) SetLogger(logger *zap.Logger)

type AccountInfo

type AccountInfo struct {
	Permissions []*PermissionObject `json:"permissions"`
	LinkAuths   []*LinkAuth         `json:"link_auths"`
	// contains filtered or unexported fields
}

type Contract

type Contract struct {
	RawABI []byte
	Code   []byte
}

func NewContract

func NewContract(abi []byte, code []byte) *Contract

type Eject

type Eject struct {
	Account zsw.AccountName `json:"account"`
	Table   zsw.TableName   `json:"table"`
	Scope   zsw.ScopeName   `json:"scope"`
	Key     zsw.Name        `json:"id"`
}

Delete represents the `Delete` struct on `migration` contract.

type Idxc

type Idxc struct {
	Table     zsw.TableName   `json:"table"`
	Scope     zsw.ScopeName   `json:"scope"`
	Payer     zsw.Name        `json:"payer"`
	Key       zsw.Name        `json:"id"`
	Secondary zsw.Checksum256 `json:"secondary"`
}

Idxc represents the `Idxc` struct on `migration` contract.

type Idxdbl

type Idxdbl struct {
	Table     zsw.TableName `json:"table"`
	Scope     zsw.ScopeName `json:"scope"`
	Payer     zsw.Name      `json:"payer"`
	Key       zsw.Name      `json:"id"`
	Secondary float64       `json:"secondary"`
}

Idxdbl represents the `Idxdbl` struct on `migration` contract.

type Idxi

type Idxi struct {
	Table     zsw.TableName `json:"table"`
	Scope     zsw.ScopeName `json:"scope"`
	Payer     zsw.Name      `json:"payer"`
	Key       zsw.Name      `json:"id"`
	Secondary zsw.Name      `json:"secondary"`
}

Idxi represents the `Idxi` struct on `migration` contract.

type Idxii

type Idxii struct {
	Table     zsw.TableName `json:"table"`
	Scope     zsw.ScopeName `json:"scope"`
	Payer     zsw.Name      `json:"payer"`
	Key       zsw.Name      `json:"id"`
	Secondary zsw.Uint128   `json:"secondary"`
}

Idxii represents the `Idxii` struct on `migration` contract.

type Idxldbl

type Idxldbl struct {
	Table     zsw.TableName `json:"table"`
	Scope     zsw.ScopeName `json:"scope"`
	Payer     zsw.Name      `json:"payer"`
	Key       zsw.Name      `json:"id"`
	Secondary zsw.Float128  `json:"secondary"`
}

Idxldbl represents the `Idxldbl` struct on `migration` contract.

type Inject

type Inject struct {
	Table zsw.TableName `json:"table"`
	Scope zsw.ScopeName `json:"scope"`
	Payer zsw.Name      `json:"payer"`
	Key   zsw.Name      `json:"id"`
	Data  zsw.HexBytes  `json:"data"`
}

Inject represents the `inject` struct on `migration` contract.

type LinkAuth

type LinkAuth struct {
	Permission string `json:"permission"`
	Contract   string `json:"contract"`
	Action     string `json:"action"`
}

type OpMigration

type OpMigration struct {
	DataDir string `json:"data_dir"`
}

func (*OpMigration) Actions

func (op *OpMigration) Actions(opPubkey ecc.PublicKey, c *config.OpConfig, in chan interface{}) error

func (*OpMigration) RequireValidation

func (op *OpMigration) RequireValidation() bool

type Option

type Option func(e *exporter) *exporter

func WithLogger

func WithLogger(logger *zap.Logger) Option

type PermissionObject

type PermissionObject struct {
	// Parent of this permission object
	Parent zsw.PermissionName `json:"parent,omitempty"`
	// Owner is the account for which this permission belongs to
	Owner zsw.AccountName `json:"owner,omitempty"`
	// Name is the permission's name this permission object is known as (human-readable name for the permission)
	Name zsw.PermissionName `json:"name,omitempty"`
	// Authority required to execute this permission
	Authority *zsw.Authority `json:"authority,omitempty"`
}

Jump to

Keyboard shortcuts

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