blueaccount

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package blueaccount implements Blue Account functionality.

For more details, see https://github.com/iov-one/weave/issues/1031

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCodec = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCodec   = fmt.Errorf("proto: integer overflow")
)

Functions

func DomainAccounts

func DomainAccounts(db weave.ReadOnlyKVStore, domain string) (weave.Iterator, error)

DomainAccounts returns an iterator through all account that belong to a given domain. It is the client responsibility to releast the iterator.

func NewAccountBucket

func NewAccountBucket() orm.ModelBucket

func NewDomainBucket

func NewDomainBucket() orm.ModelBucket

func RegisterQuery

func RegisterQuery(qr weave.QueryRouter)

func RegisterRoutes

func RegisterRoutes(r weave.Registry, auth x.Authenticator)

Types

type Account

type Account struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Domain references a domain that this account belongs to.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Name   string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Owner is a weave.Address that controls this account. Can be empty.
	//
	// An account is always owned by the domain owner. In addition, ownership can
	// be assigned to one more address to share ownership and allow another party
	// to manage selected account.
	Owner   github_com_iov_one_weave.Address `protobuf:"bytes,4,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"`
	Targets []BlockchainAddress              `protobuf:"bytes,5,rep,name=targets,proto3" json:"targets"`
}

Account represents a blue account name.

String representation of an account is `<name>*<domain>`. Empty name is an acceptable account string. Complete validation rules for name and domain are declared by configuration entity.

An account must always belong to an existing domain.

func (*Account) Descriptor

func (*Account) Descriptor() ([]byte, []int)

func (*Account) GetDomain

func (m *Account) GetDomain() string

func (*Account) GetMetadata

func (m *Account) GetMetadata() *weave.Metadata

func (*Account) GetName

func (m *Account) GetName() string

func (*Account) GetOwner

func (*Account) GetTargets

func (m *Account) GetTargets() []BlockchainAddress

func (*Account) Marshal

func (m *Account) Marshal() (dAtA []byte, err error)

func (*Account) MarshalTo

func (m *Account) MarshalTo(dAtA []byte) (int, error)

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) Size

func (m *Account) Size() (n int)

func (*Account) String

func (m *Account) String() string

func (*Account) Unmarshal

func (m *Account) Unmarshal(dAtA []byte) error

func (*Account) Validate

func (a *Account) Validate() error

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Account) XXX_Merge

func (m *Account) XXX_Merge(src proto.Message)

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

func (m *Account) XXX_Unmarshal(b []byte) error

type BlockchainAddress

type BlockchainAddress struct {
	// An arbitrary blockchain ID.
	BlockchainID string `protobuf:"bytes,1,opt,name=blockchain_id,json=blockchainId,proto3" json:"blockchain_id,omitempty"`
	// An address on the specified blockchain network. Address is not a
	// weave.Address as we cannot know what is the format of an address on the
	// chain that this token instance links to. Because we do not know the rules
	// to validate an address for any blockchain ID, this is an arbitrary bulk of
	// data.
	// It is more convenient to always use encoded representation of each address
	// and store it as a string. Using bytes while compact is not as comfortable
	// to use.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

BlockchainAddress represents a blochain address. This structure clubs together blokchain ID together with an address on that network. It is used to point to an address on any blockchain network.

func (*BlockchainAddress) Descriptor

func (*BlockchainAddress) Descriptor() ([]byte, []int)

func (*BlockchainAddress) GetAddress

func (m *BlockchainAddress) GetAddress() string

func (*BlockchainAddress) GetBlockchainID

func (m *BlockchainAddress) GetBlockchainID() string

func (*BlockchainAddress) Marshal

func (m *BlockchainAddress) Marshal() (dAtA []byte, err error)

func (*BlockchainAddress) MarshalTo

func (m *BlockchainAddress) MarshalTo(dAtA []byte) (int, error)

func (*BlockchainAddress) ProtoMessage

func (*BlockchainAddress) ProtoMessage()

func (*BlockchainAddress) Reset

func (m *BlockchainAddress) Reset()

func (*BlockchainAddress) Size

func (m *BlockchainAddress) Size() (n int)

func (*BlockchainAddress) String

func (m *BlockchainAddress) String() string

func (*BlockchainAddress) Unmarshal

func (m *BlockchainAddress) Unmarshal(dAtA []byte) error

func (*BlockchainAddress) Validate

func (ba *BlockchainAddress) Validate() error

func (*BlockchainAddress) XXX_DiscardUnknown

func (m *BlockchainAddress) XXX_DiscardUnknown()

func (*BlockchainAddress) XXX_Marshal

func (m *BlockchainAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockchainAddress) XXX_Merge

func (m *BlockchainAddress) XXX_Merge(src proto.Message)

func (*BlockchainAddress) XXX_Size

func (m *BlockchainAddress) XXX_Size() int

func (*BlockchainAddress) XXX_Unmarshal

func (m *BlockchainAddress) XXX_Unmarshal(b []byte) error

type Configuration

type Configuration struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Owner is present to implement gconf.OwnedConfig interface
	// This defines the Address that is allowed to update the Configuration object and is
	// needed to make use of gconf.NewUpdateConfigurationHandler
	Owner github_com_iov_one_weave.Address `protobuf:"bytes,2,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"`
	// Valid domain defines a regular expression that every valid domain of an
	// account must match. Rule must not include the asterisk (*) character.
	ValidDomain string `protobuf:"bytes,3,opt,name=valid_domain,json=validDomain,proto3" json:"valid_domain,omitempty"`
	// Valid name defines a regular expression that every valid name of an
	// account must match. Rule must not include the asterisk (*) character.
	ValidName string `protobuf:"bytes,4,opt,name=valid_name,json=validName,proto3" json:"valid_name,omitempty"`
	// Domain review defines the duration of the domain renewal period.
	DomainRenew github_com_iov_one_weave.UnixDuration `` /* 142-byte string literal not displayed */
}

Configuration is a dynamic configuration used by this extension, managed by the functionality provided by gconf package.

func (*Configuration) Descriptor

func (*Configuration) Descriptor() ([]byte, []int)

func (*Configuration) GetDomainRenew

func (*Configuration) GetMetadata

func (m *Configuration) GetMetadata() *weave.Metadata

func (*Configuration) GetOwner

func (*Configuration) GetValidDomain

func (m *Configuration) GetValidDomain() string

func (*Configuration) GetValidName

func (m *Configuration) GetValidName() string

func (*Configuration) Marshal

func (m *Configuration) Marshal() (dAtA []byte, err error)

func (*Configuration) MarshalTo

func (m *Configuration) MarshalTo(dAtA []byte) (int, error)

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) Reset

func (m *Configuration) Reset()

func (*Configuration) Size

func (m *Configuration) Size() (n int)

func (*Configuration) String

func (m *Configuration) String() string

func (*Configuration) Unmarshal

func (m *Configuration) Unmarshal(dAtA []byte) error

func (*Configuration) Validate

func (c *Configuration) Validate() error

func (*Configuration) XXX_DiscardUnknown

func (m *Configuration) XXX_DiscardUnknown()

func (*Configuration) XXX_Marshal

func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Configuration) XXX_Merge

func (m *Configuration) XXX_Merge(src proto.Message)

func (*Configuration) XXX_Size

func (m *Configuration) XXX_Size() int

func (*Configuration) XXX_Unmarshal

func (m *Configuration) XXX_Unmarshal(b []byte) error

type DeleteAccountMsg

type DeleteAccountMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Domain   string          `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Name     string          `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}

DeleteAccountMsg issues deletion of a name that belongs to given domain. Message must be signed by the domain owner.

func (*DeleteAccountMsg) Descriptor

func (*DeleteAccountMsg) Descriptor() ([]byte, []int)

func (*DeleteAccountMsg) GetDomain

func (m *DeleteAccountMsg) GetDomain() string

func (*DeleteAccountMsg) GetMetadata

func (m *DeleteAccountMsg) GetMetadata() *weave.Metadata

func (*DeleteAccountMsg) GetName

func (m *DeleteAccountMsg) GetName() string

func (*DeleteAccountMsg) Marshal

func (m *DeleteAccountMsg) Marshal() (dAtA []byte, err error)

func (*DeleteAccountMsg) MarshalTo

func (m *DeleteAccountMsg) MarshalTo(dAtA []byte) (int, error)

func (DeleteAccountMsg) Path

func (DeleteAccountMsg) Path() string

func (*DeleteAccountMsg) ProtoMessage

func (*DeleteAccountMsg) ProtoMessage()

func (*DeleteAccountMsg) Reset

func (m *DeleteAccountMsg) Reset()

func (*DeleteAccountMsg) Size

func (m *DeleteAccountMsg) Size() (n int)

func (*DeleteAccountMsg) String

func (m *DeleteAccountMsg) String() string

func (*DeleteAccountMsg) Unmarshal

func (m *DeleteAccountMsg) Unmarshal(dAtA []byte) error

func (*DeleteAccountMsg) Validate

func (msg *DeleteAccountMsg) Validate() error

func (*DeleteAccountMsg) XXX_DiscardUnknown

func (m *DeleteAccountMsg) XXX_DiscardUnknown()

func (*DeleteAccountMsg) XXX_Marshal

func (m *DeleteAccountMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteAccountMsg) XXX_Merge

func (m *DeleteAccountMsg) XXX_Merge(src proto.Message)

func (*DeleteAccountMsg) XXX_Size

func (m *DeleteAccountMsg) XXX_Size() int

func (*DeleteAccountMsg) XXX_Unmarshal

func (m *DeleteAccountMsg) XXX_Unmarshal(b []byte) error

type DeleteDomainMsg

type DeleteDomainMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Name of the domain that is deleted.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
}

DeleteDomainMsg issues deletion of a domain and all accounts that belong to that domain.

func (*DeleteDomainMsg) Descriptor

func (*DeleteDomainMsg) Descriptor() ([]byte, []int)

func (*DeleteDomainMsg) GetDomain

func (m *DeleteDomainMsg) GetDomain() string

func (*DeleteDomainMsg) GetMetadata

func (m *DeleteDomainMsg) GetMetadata() *weave.Metadata

func (*DeleteDomainMsg) Marshal

func (m *DeleteDomainMsg) Marshal() (dAtA []byte, err error)

func (*DeleteDomainMsg) MarshalTo

func (m *DeleteDomainMsg) MarshalTo(dAtA []byte) (int, error)

func (DeleteDomainMsg) Path

func (DeleteDomainMsg) Path() string

func (*DeleteDomainMsg) ProtoMessage

func (*DeleteDomainMsg) ProtoMessage()

func (*DeleteDomainMsg) Reset

func (m *DeleteDomainMsg) Reset()

func (*DeleteDomainMsg) Size

func (m *DeleteDomainMsg) Size() (n int)

func (*DeleteDomainMsg) String

func (m *DeleteDomainMsg) String() string

func (*DeleteDomainMsg) Unmarshal

func (m *DeleteDomainMsg) Unmarshal(dAtA []byte) error

func (*DeleteDomainMsg) Validate

func (msg *DeleteDomainMsg) Validate() error

func (*DeleteDomainMsg) XXX_DiscardUnknown

func (m *DeleteDomainMsg) XXX_DiscardUnknown()

func (*DeleteDomainMsg) XXX_Marshal

func (m *DeleteDomainMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteDomainMsg) XXX_Merge

func (m *DeleteDomainMsg) XXX_Merge(src proto.Message)

func (*DeleteDomainMsg) XXX_Size

func (m *DeleteDomainMsg) XXX_Size() int

func (*DeleteDomainMsg) XXX_Unmarshal

func (m *DeleteDomainMsg) XXX_Unmarshal(b []byte) error

type Domain

type Domain struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Domain   string          `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// Owner is a weave.Address that controls this domain and all accounts that
	// belong to this domain.
	Owner github_com_iov_one_weave.Address `protobuf:"bytes,3,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"`
	// Valid until defines the expiration date for the domain. Expired domain
	// cannot be used or modified. None of the accounts that belong to an expired
	// domain can be used of modified as well.
	ValidUntil github_com_iov_one_weave.UnixTime `` /* 135-byte string literal not displayed */
}

Domain represents a blue account domain.

Domain is a container for accounts. Account representation is `<name>*<domain>`. Each domain owner controls all accounts that belong to that domain. Each domain controls expiration of all accounts that belong to that domain.

Because of the functionality that the Red Account provides, Blue Account domain must not be `iov` as this is a domain used by Red Account functionality.

func (*Domain) Descriptor

func (*Domain) Descriptor() ([]byte, []int)

func (*Domain) GetDomain

func (m *Domain) GetDomain() string

func (*Domain) GetMetadata

func (m *Domain) GetMetadata() *weave.Metadata

func (*Domain) GetOwner

func (m *Domain) GetOwner() github_com_iov_one_weave.Address

func (*Domain) GetValidUntil

func (m *Domain) GetValidUntil() github_com_iov_one_weave.UnixTime

func (*Domain) Marshal

func (m *Domain) Marshal() (dAtA []byte, err error)

func (*Domain) MarshalTo

func (m *Domain) MarshalTo(dAtA []byte) (int, error)

func (*Domain) ProtoMessage

func (*Domain) ProtoMessage()

func (*Domain) Reset

func (m *Domain) Reset()

func (*Domain) Size

func (m *Domain) Size() (n int)

func (*Domain) String

func (m *Domain) String() string

func (*Domain) Unmarshal

func (m *Domain) Unmarshal(dAtA []byte) error

func (*Domain) Validate

func (d *Domain) Validate() error

func (*Domain) XXX_DiscardUnknown

func (m *Domain) XXX_DiscardUnknown()

func (*Domain) XXX_Marshal

func (m *Domain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Domain) XXX_Merge

func (m *Domain) XXX_Merge(src proto.Message)

func (*Domain) XXX_Size

func (m *Domain) XXX_Size() int

func (*Domain) XXX_Unmarshal

func (m *Domain) XXX_Unmarshal(b []byte) error

type FlushDomainMsg

type FlushDomainMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Domain   string          `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
}

FlushDomainMsg issues deletion of all names (except the one with an empty name) that belongs to given domain. Message must be signed by the domain owner.

func (*FlushDomainMsg) Descriptor

func (*FlushDomainMsg) Descriptor() ([]byte, []int)

func (*FlushDomainMsg) GetDomain

func (m *FlushDomainMsg) GetDomain() string

func (*FlushDomainMsg) GetMetadata

func (m *FlushDomainMsg) GetMetadata() *weave.Metadata

func (*FlushDomainMsg) Marshal

func (m *FlushDomainMsg) Marshal() (dAtA []byte, err error)

func (*FlushDomainMsg) MarshalTo

func (m *FlushDomainMsg) MarshalTo(dAtA []byte) (int, error)

func (FlushDomainMsg) Path

func (FlushDomainMsg) Path() string

func (*FlushDomainMsg) ProtoMessage

func (*FlushDomainMsg) ProtoMessage()

func (*FlushDomainMsg) Reset

func (m *FlushDomainMsg) Reset()

func (*FlushDomainMsg) Size

func (m *FlushDomainMsg) Size() (n int)

func (*FlushDomainMsg) String

func (m *FlushDomainMsg) String() string

func (*FlushDomainMsg) Unmarshal

func (m *FlushDomainMsg) Unmarshal(dAtA []byte) error

func (*FlushDomainMsg) Validate

func (msg *FlushDomainMsg) Validate() error

func (*FlushDomainMsg) XXX_DiscardUnknown

func (m *FlushDomainMsg) XXX_DiscardUnknown()

func (*FlushDomainMsg) XXX_Marshal

func (m *FlushDomainMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FlushDomainMsg) XXX_Merge

func (m *FlushDomainMsg) XXX_Merge(src proto.Message)

func (*FlushDomainMsg) XXX_Size

func (m *FlushDomainMsg) XXX_Size() int

func (*FlushDomainMsg) XXX_Unmarshal

func (m *FlushDomainMsg) XXX_Unmarshal(b []byte) error

type RegisterAccountMsg

type RegisterAccountMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Domain that a new account is the be registered under.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// Name that a new account is the be registered with.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Owner holds the address of the newly registered account. Can be empty to
	// leave the administration to the domain owner only.
	Owner   github_com_iov_one_weave.Address `protobuf:"bytes,4,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"`
	Targets []BlockchainAddress              `protobuf:"bytes,5,rep,name=targets,proto3" json:"targets"`
	// Third party token is an arbitrary data that can be provided by a middleman
	// (i.e. retailer) that although does not participate directly in the
	// transaction, helped a user to renew a domain. Storing a client token helps
	// identify contribution of such party later.
	ThirdPartyToken []byte `protobuf:"bytes,6,opt,name=third_party_token,json=thirdPartyToken,proto3" json:"third_party_token,omitempty"`
}

RegisterAccountMsg issues registration of an account. Requested domain must exist and belong to the same user that signs this message.

func (*RegisterAccountMsg) Descriptor

func (*RegisterAccountMsg) Descriptor() ([]byte, []int)

func (*RegisterAccountMsg) GetDomain

func (m *RegisterAccountMsg) GetDomain() string

func (*RegisterAccountMsg) GetMetadata

func (m *RegisterAccountMsg) GetMetadata() *weave.Metadata

func (*RegisterAccountMsg) GetName

func (m *RegisterAccountMsg) GetName() string

func (*RegisterAccountMsg) GetOwner

func (*RegisterAccountMsg) GetTargets

func (m *RegisterAccountMsg) GetTargets() []BlockchainAddress

func (*RegisterAccountMsg) GetThirdPartyToken

func (m *RegisterAccountMsg) GetThirdPartyToken() []byte

func (*RegisterAccountMsg) Marshal

func (m *RegisterAccountMsg) Marshal() (dAtA []byte, err error)

func (*RegisterAccountMsg) MarshalTo

func (m *RegisterAccountMsg) MarshalTo(dAtA []byte) (int, error)

func (RegisterAccountMsg) Path

func (RegisterAccountMsg) Path() string

func (*RegisterAccountMsg) ProtoMessage

func (*RegisterAccountMsg) ProtoMessage()

func (*RegisterAccountMsg) Reset

func (m *RegisterAccountMsg) Reset()

func (*RegisterAccountMsg) Size

func (m *RegisterAccountMsg) Size() (n int)

func (*RegisterAccountMsg) String

func (m *RegisterAccountMsg) String() string

func (*RegisterAccountMsg) Unmarshal

func (m *RegisterAccountMsg) Unmarshal(dAtA []byte) error

func (*RegisterAccountMsg) Validate

func (msg *RegisterAccountMsg) Validate() error

func (*RegisterAccountMsg) XXX_DiscardUnknown

func (m *RegisterAccountMsg) XXX_DiscardUnknown()

func (*RegisterAccountMsg) XXX_Marshal

func (m *RegisterAccountMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterAccountMsg) XXX_Merge

func (m *RegisterAccountMsg) XXX_Merge(src proto.Message)

func (*RegisterAccountMsg) XXX_Size

func (m *RegisterAccountMsg) XXX_Size() int

func (*RegisterAccountMsg) XXX_Unmarshal

func (m *RegisterAccountMsg) XXX_Unmarshal(b []byte) error

type RegisterDomainMsg

type RegisterDomainMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Owner holds the address of the newly registered domain. If not provided,
	// main signer is used.
	Owner github_com_iov_one_weave.Address `protobuf:"bytes,2,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"`
	// Domain part of the account that should be registered.
	Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
	// Third party token is an arbitrary data that can be provided by a middleman
	// (i.e. retailer) that although does not participate directly in the
	// transaction, helped a user to register a domain. Storing a client token
	// helps identify contribution of such party later.
	ThirdPartyToken []byte `protobuf:"bytes,4,opt,name=third_party_token,json=thirdPartyToken,proto3" json:"third_party_token,omitempty"`
}

RegisterDomainMsg is issuing registration of a new domain. Requested domain name must be available (not yet registed) in order for the request to succeed. Registering a domain creates an account with no name that belongs to this domain.

func (*RegisterDomainMsg) Descriptor

func (*RegisterDomainMsg) Descriptor() ([]byte, []int)

func (*RegisterDomainMsg) GetDomain

func (m *RegisterDomainMsg) GetDomain() string

func (*RegisterDomainMsg) GetMetadata

func (m *RegisterDomainMsg) GetMetadata() *weave.Metadata

func (*RegisterDomainMsg) GetOwner

func (*RegisterDomainMsg) GetThirdPartyToken

func (m *RegisterDomainMsg) GetThirdPartyToken() []byte

func (*RegisterDomainMsg) Marshal

func (m *RegisterDomainMsg) Marshal() (dAtA []byte, err error)

func (*RegisterDomainMsg) MarshalTo

func (m *RegisterDomainMsg) MarshalTo(dAtA []byte) (int, error)

func (RegisterDomainMsg) Path

func (RegisterDomainMsg) Path() string

func (*RegisterDomainMsg) ProtoMessage

func (*RegisterDomainMsg) ProtoMessage()

func (*RegisterDomainMsg) Reset

func (m *RegisterDomainMsg) Reset()

func (*RegisterDomainMsg) Size

func (m *RegisterDomainMsg) Size() (n int)

func (*RegisterDomainMsg) String

func (m *RegisterDomainMsg) String() string

func (*RegisterDomainMsg) Unmarshal

func (m *RegisterDomainMsg) Unmarshal(dAtA []byte) error

func (*RegisterDomainMsg) Validate

func (msg *RegisterDomainMsg) Validate() error

func (*RegisterDomainMsg) XXX_DiscardUnknown

func (m *RegisterDomainMsg) XXX_DiscardUnknown()

func (*RegisterDomainMsg) XXX_Marshal

func (m *RegisterDomainMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterDomainMsg) XXX_Merge

func (m *RegisterDomainMsg) XXX_Merge(src proto.Message)

func (*RegisterDomainMsg) XXX_Size

func (m *RegisterDomainMsg) XXX_Size() int

func (*RegisterDomainMsg) XXX_Unmarshal

func (m *RegisterDomainMsg) XXX_Unmarshal(b []byte) error

type RenewDomainMsg

type RenewDomainMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Name of the domain that is transferred.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// Third party token is an arbitrary data that can be provided by a middleman
	// (i.e. retailer) that although does not participate directly in the
	// transaction, helped a user to renew a domain. Storing a client token helps
	// identify contribution of such party later.
	ThirdPartyToken []byte `protobuf:"bytes,3,opt,name=third_party_token,json=thirdPartyToken,proto3" json:"third_party_token,omitempty"`
}

RenewDomainMsg is issuing a domain expiration time extension. Extension period is defined by the configuration entity.

func (*RenewDomainMsg) Descriptor

func (*RenewDomainMsg) Descriptor() ([]byte, []int)

func (*RenewDomainMsg) GetDomain

func (m *RenewDomainMsg) GetDomain() string

func (*RenewDomainMsg) GetMetadata

func (m *RenewDomainMsg) GetMetadata() *weave.Metadata

func (*RenewDomainMsg) GetThirdPartyToken

func (m *RenewDomainMsg) GetThirdPartyToken() []byte

func (*RenewDomainMsg) Marshal

func (m *RenewDomainMsg) Marshal() (dAtA []byte, err error)

func (*RenewDomainMsg) MarshalTo

func (m *RenewDomainMsg) MarshalTo(dAtA []byte) (int, error)

func (RenewDomainMsg) Path

func (RenewDomainMsg) Path() string

func (*RenewDomainMsg) ProtoMessage

func (*RenewDomainMsg) ProtoMessage()

func (*RenewDomainMsg) Reset

func (m *RenewDomainMsg) Reset()

func (*RenewDomainMsg) Size

func (m *RenewDomainMsg) Size() (n int)

func (*RenewDomainMsg) String

func (m *RenewDomainMsg) String() string

func (*RenewDomainMsg) Unmarshal

func (m *RenewDomainMsg) Unmarshal(dAtA []byte) error

func (*RenewDomainMsg) Validate

func (msg *RenewDomainMsg) Validate() error

func (*RenewDomainMsg) XXX_DiscardUnknown

func (m *RenewDomainMsg) XXX_DiscardUnknown()

func (*RenewDomainMsg) XXX_Marshal

func (m *RenewDomainMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RenewDomainMsg) XXX_Merge

func (m *RenewDomainMsg) XXX_Merge(src proto.Message)

func (*RenewDomainMsg) XXX_Size

func (m *RenewDomainMsg) XXX_Size() int

func (*RenewDomainMsg) XXX_Unmarshal

func (m *RenewDomainMsg) XXX_Unmarshal(b []byte) error

type ReplaceAccountTargetsMsg

type ReplaceAccountTargetsMsg struct {
	Metadata   *weave.Metadata     `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Domain     string              `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Name       string              `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	NewTargets []BlockchainAddress `protobuf:"bytes,5,rep,name=new_targets,json=newTargets,proto3" json:"new_targets"`
}

ReplaceAccountTargetsMsg is issuing rewrite of all targets that given account points to.

func (*ReplaceAccountTargetsMsg) Descriptor

func (*ReplaceAccountTargetsMsg) Descriptor() ([]byte, []int)

func (*ReplaceAccountTargetsMsg) GetDomain

func (m *ReplaceAccountTargetsMsg) GetDomain() string

func (*ReplaceAccountTargetsMsg) GetMetadata

func (m *ReplaceAccountTargetsMsg) GetMetadata() *weave.Metadata

func (*ReplaceAccountTargetsMsg) GetName

func (m *ReplaceAccountTargetsMsg) GetName() string

func (*ReplaceAccountTargetsMsg) GetNewTargets

func (m *ReplaceAccountTargetsMsg) GetNewTargets() []BlockchainAddress

func (*ReplaceAccountTargetsMsg) Marshal

func (m *ReplaceAccountTargetsMsg) Marshal() (dAtA []byte, err error)

func (*ReplaceAccountTargetsMsg) MarshalTo

func (m *ReplaceAccountTargetsMsg) MarshalTo(dAtA []byte) (int, error)

func (ReplaceAccountTargetsMsg) Path

func (*ReplaceAccountTargetsMsg) ProtoMessage

func (*ReplaceAccountTargetsMsg) ProtoMessage()

func (*ReplaceAccountTargetsMsg) Reset

func (m *ReplaceAccountTargetsMsg) Reset()

func (*ReplaceAccountTargetsMsg) Size

func (m *ReplaceAccountTargetsMsg) Size() (n int)

func (*ReplaceAccountTargetsMsg) String

func (m *ReplaceAccountTargetsMsg) String() string

func (*ReplaceAccountTargetsMsg) Unmarshal

func (m *ReplaceAccountTargetsMsg) Unmarshal(dAtA []byte) error

func (*ReplaceAccountTargetsMsg) Validate

func (msg *ReplaceAccountTargetsMsg) Validate() error

func (*ReplaceAccountTargetsMsg) XXX_DiscardUnknown

func (m *ReplaceAccountTargetsMsg) XXX_DiscardUnknown()

func (*ReplaceAccountTargetsMsg) XXX_Marshal

func (m *ReplaceAccountTargetsMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplaceAccountTargetsMsg) XXX_Merge

func (m *ReplaceAccountTargetsMsg) XXX_Merge(src proto.Message)

func (*ReplaceAccountTargetsMsg) XXX_Size

func (m *ReplaceAccountTargetsMsg) XXX_Size() int

func (*ReplaceAccountTargetsMsg) XXX_Unmarshal

func (m *ReplaceAccountTargetsMsg) XXX_Unmarshal(b []byte) error

type TransferAccountMsg

type TransferAccountMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Domain   string          `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Name     string          `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// New owner holds the address that the ownership of the domain is
	// transferred to.
	NewOwner github_com_iov_one_weave.Address `` /* 127-byte string literal not displayed */
}

TransferAccountMsg is issuing an ownership transfer over specified account. Transfering an account ownership does not affect related domain owner permissions to administrate that account.

func (*TransferAccountMsg) Descriptor

func (*TransferAccountMsg) Descriptor() ([]byte, []int)

func (*TransferAccountMsg) GetDomain

func (m *TransferAccountMsg) GetDomain() string

func (*TransferAccountMsg) GetMetadata

func (m *TransferAccountMsg) GetMetadata() *weave.Metadata

func (*TransferAccountMsg) GetName

func (m *TransferAccountMsg) GetName() string

func (*TransferAccountMsg) GetNewOwner

func (*TransferAccountMsg) Marshal

func (m *TransferAccountMsg) Marshal() (dAtA []byte, err error)

func (*TransferAccountMsg) MarshalTo

func (m *TransferAccountMsg) MarshalTo(dAtA []byte) (int, error)

func (TransferAccountMsg) Path

func (TransferAccountMsg) Path() string

func (*TransferAccountMsg) ProtoMessage

func (*TransferAccountMsg) ProtoMessage()

func (*TransferAccountMsg) Reset

func (m *TransferAccountMsg) Reset()

func (*TransferAccountMsg) Size

func (m *TransferAccountMsg) Size() (n int)

func (*TransferAccountMsg) String

func (m *TransferAccountMsg) String() string

func (*TransferAccountMsg) Unmarshal

func (m *TransferAccountMsg) Unmarshal(dAtA []byte) error

func (*TransferAccountMsg) Validate

func (msg *TransferAccountMsg) Validate() error

func (*TransferAccountMsg) XXX_DiscardUnknown

func (m *TransferAccountMsg) XXX_DiscardUnknown()

func (*TransferAccountMsg) XXX_Marshal

func (m *TransferAccountMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferAccountMsg) XXX_Merge

func (m *TransferAccountMsg) XXX_Merge(src proto.Message)

func (*TransferAccountMsg) XXX_Size

func (m *TransferAccountMsg) XXX_Size() int

func (*TransferAccountMsg) XXX_Unmarshal

func (m *TransferAccountMsg) XXX_Unmarshal(b []byte) error

type TransferDomainMsg

type TransferDomainMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Name of the domain that is transferred.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// New owner holds the address that the ownership of the domain is
	// transferred to.
	NewOwner github_com_iov_one_weave.Address `` /* 127-byte string literal not displayed */
}

TransferDomainMsg is issuing an ownership transfer over specified domain.

func (*TransferDomainMsg) Descriptor

func (*TransferDomainMsg) Descriptor() ([]byte, []int)

func (*TransferDomainMsg) GetDomain

func (m *TransferDomainMsg) GetDomain() string

func (*TransferDomainMsg) GetMetadata

func (m *TransferDomainMsg) GetMetadata() *weave.Metadata

func (*TransferDomainMsg) GetNewOwner

func (*TransferDomainMsg) Marshal

func (m *TransferDomainMsg) Marshal() (dAtA []byte, err error)

func (*TransferDomainMsg) MarshalTo

func (m *TransferDomainMsg) MarshalTo(dAtA []byte) (int, error)

func (TransferDomainMsg) Path

func (TransferDomainMsg) Path() string

func (*TransferDomainMsg) ProtoMessage

func (*TransferDomainMsg) ProtoMessage()

func (*TransferDomainMsg) Reset

func (m *TransferDomainMsg) Reset()

func (*TransferDomainMsg) Size

func (m *TransferDomainMsg) Size() (n int)

func (*TransferDomainMsg) String

func (m *TransferDomainMsg) String() string

func (*TransferDomainMsg) Unmarshal

func (m *TransferDomainMsg) Unmarshal(dAtA []byte) error

func (*TransferDomainMsg) Validate

func (msg *TransferDomainMsg) Validate() error

func (*TransferDomainMsg) XXX_DiscardUnknown

func (m *TransferDomainMsg) XXX_DiscardUnknown()

func (*TransferDomainMsg) XXX_Marshal

func (m *TransferDomainMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferDomainMsg) XXX_Merge

func (m *TransferDomainMsg) XXX_Merge(src proto.Message)

func (*TransferDomainMsg) XXX_Size

func (m *TransferDomainMsg) XXX_Size() int

func (*TransferDomainMsg) XXX_Unmarshal

func (m *TransferDomainMsg) XXX_Unmarshal(b []byte) error

type UpdateConfigurationMsg

type UpdateConfigurationMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Patch    *Configuration  `protobuf:"bytes,2,opt,name=patch,proto3" json:"patch,omitempty"`
}

UpdateConfigurationMsg is used by the gconf extension to update the configuration.

func (*UpdateConfigurationMsg) Descriptor

func (*UpdateConfigurationMsg) Descriptor() ([]byte, []int)

func (*UpdateConfigurationMsg) GetMetadata

func (m *UpdateConfigurationMsg) GetMetadata() *weave.Metadata

func (*UpdateConfigurationMsg) GetPatch

func (m *UpdateConfigurationMsg) GetPatch() *Configuration

func (*UpdateConfigurationMsg) Marshal

func (m *UpdateConfigurationMsg) Marshal() (dAtA []byte, err error)

func (*UpdateConfigurationMsg) MarshalTo

func (m *UpdateConfigurationMsg) MarshalTo(dAtA []byte) (int, error)

func (UpdateConfigurationMsg) Path

func (*UpdateConfigurationMsg) ProtoMessage

func (*UpdateConfigurationMsg) ProtoMessage()

func (*UpdateConfigurationMsg) Reset

func (m *UpdateConfigurationMsg) Reset()

func (*UpdateConfigurationMsg) Size

func (m *UpdateConfigurationMsg) Size() (n int)

func (*UpdateConfigurationMsg) String

func (m *UpdateConfigurationMsg) String() string

func (*UpdateConfigurationMsg) Unmarshal

func (m *UpdateConfigurationMsg) Unmarshal(dAtA []byte) error

func (*UpdateConfigurationMsg) Validate

func (msg *UpdateConfigurationMsg) Validate() error

func (*UpdateConfigurationMsg) XXX_DiscardUnknown

func (m *UpdateConfigurationMsg) XXX_DiscardUnknown()

func (*UpdateConfigurationMsg) XXX_Marshal

func (m *UpdateConfigurationMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateConfigurationMsg) XXX_Merge

func (m *UpdateConfigurationMsg) XXX_Merge(src proto.Message)

func (*UpdateConfigurationMsg) XXX_Size

func (m *UpdateConfigurationMsg) XXX_Size() int

func (*UpdateConfigurationMsg) XXX_Unmarshal

func (m *UpdateConfigurationMsg) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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