models

package
v0.0.0-...-7a4b066 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ack

type Ack struct {

	// message
	Message string `json:"message,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

Ack ack

swagger:model Ack

func (*Ack) ContextValidate

func (m *Ack) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ack based on context it is used

func (*Ack) MarshalBinary

func (m *Ack) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Ack) UnmarshalBinary

func (m *Ack) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Ack) Validate

func (m *Ack) Validate(formats strfmt.Registry) error

Validate validates this ack

type Error

type Error struct {

	// code
	// Required: true
	Code *int32 `json:"code"`

	// fields
	Fields string `json:"fields,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type GatewayRegister

type GatewayRegister struct {

	// RootKey is the gateway's public key,
	// and can be used to derive the filecoin wallet address for payment.
	// It is a 65 bytes hex string.
	RootKey string `json:"root_key,omitempty"`

	// NodeIDD is derived from the root key, it is set by the smart contract.
	// It is a 32 bytes hex string.
	NodeID string `json:"node_id,omitempty"`

	// MsgSigningKey is the message signing public key.
	// It is a 65 bytes hex string.
	// This can be updated via smart contract.
	MsgSigningKey string `json:"msg_signing_key,omitempty"`

	// MsgSigningKeyVer is the message signing public key version.
	// This can be updated via smart contract.
	MsgSigningKeyVer byte `json:"msg_signing_key_ver,omitempty"`

	// RegionCode is the region code of this gateway.
	// It is a ISO 3166-1 alpha-2 string.
	RegionCode string `json:"region_code,omitempty"`

	// NetworkAddr is the network address of this gateway.
	// It should be a valid libp2p address.
	NetworkAddr string `json:"network_addr,omitempty"`

	// Deregistering indicates whether or not this gateway is in the middle of deregistering itself.
	// It is set by the smart contract.
	Deregistering bool `json:"deregistering,omitempty"`

	// DeregisteringHeight is the height of the block which contains the deregistering transaction.
	// It is set by the smart contract.
	DeregisteringHeight uint64 `json:"deregistering_height,omitempty"`
}

GatewayRegister Register entry

swagger:model GatewayRegister

func (*GatewayRegister) ContextValidate

func (m *GatewayRegister) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this gateway register based on context it is used

func (*GatewayRegister) MarshalBinary

func (m *GatewayRegister) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GatewayRegister) UnmarshalBinary

func (m *GatewayRegister) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GatewayRegister) Validate

func (m *GatewayRegister) Validate(formats strfmt.Registry) error

Validate validates this gateway register

type Principal

type Principal string

Principal principal

swagger:model Principal

func (Principal) ContextValidate

func (m Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this principal based on context it is used

func (Principal) Validate

func (m Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

type ProviderRegister

type ProviderRegister struct {

	// RootKey is the provider's public key,
	// and can be used to derive the filecoin wallet address for payment.
	// It is a 65 bytes hex string.
	RootKey string `json:"root_key,omitempty"`

	// NodeIDD is derived from the root key, it is set by the smart contract.
	// It is a 32 bytes hex string.
	NodeID string `json:"node_id,omitempty"`

	// MsgSigningKey is the message signing public key.
	// It is a 65 bytes hex string.
	// This can be updated via smart contract.
	MsgSigningKey string `json:"msg_signing_key,omitempty"`

	// MsgSigningKeyVer is the message signing public key version.
	// This can be updated via smart contract.
	MsgSigningKeyVer byte `json:"msg_signing_key_ver,omitempty"`

	// OfferSigningKey is the offer signing public key.
	// It is a 65 bytes hex string.
	OfferSigningKey string `json:"offer_signing_key,omitempty"`

	// RegionCode is the region code of this provider.
	// It is a ISO 3166-1 alpha-2 string.
	RegionCode string `json:"region_code,omitempty"`

	// NetworkAddr is the network address of this provider.
	// It should be a valid libp2p address.
	NetworkAddr string `json:"network_addr,omitempty"`

	// Deregistering indicates whether or not this provider is in the middle of deregistering itself.
	// It is set by the smart contract.
	Deregistering bool `json:"deregistering,omitempty"`

	// DeregisteringHeight is the height of the block which contains the deregistering transaction.
	// It is set by the smart contract.
	DeregisteringHeight uint64 `json:"deregistering_height,omitempty"`
}

ProviderRegister Register entry

swagger:model ProviderRegister

func (*ProviderRegister) ContextValidate

func (m *ProviderRegister) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this provider register based on context it is used

func (*ProviderRegister) MarshalBinary

func (m *ProviderRegister) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProviderRegister) UnmarshalBinary

func (m *ProviderRegister) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProviderRegister) Validate

func (m *ProviderRegister) Validate(formats strfmt.Registry) error

Validate validates this provider register

Jump to

Keyboard shortcuts

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