Documentation ¶
Index ¶
- Variables
- func AccountKeyToMessage(a flow.AccountPublicKey) (*entitiesproto.AccountKey, error)
- func AccountToMessage(a *flow.Account) (*entitiesproto.Account, error)
- func BlockHeaderToMessage(h *flow.Header) (*entitiesproto.BlockHeader, error)
- func BlockToMessage(h *flow.Block) (*entitiesproto.Block, error)
- func EventToMessage(e flow.Event) *entitiesproto.Event
- func EventsToMessages(flowEvents []flow.Event) []*entitiesproto.Event
- func IdentifierToMessage(i flow.Identifier) []byte
- func IdentifiersToMessages(l []flow.Identifier) [][]byte
- func LightCollectionToMessage(c *flow.LightCollection) (*entitiesproto.Collection, error)
- func MessageToAccountKey(m *entitiesproto.AccountKey) (*flow.AccountPublicKey, error)
- func MessageToIdentifier(b []byte) flow.Identifier
- func MessageToTransaction(m *entitiesproto.Transaction, chain flow.Chain) (flow.TransactionBody, error)
- func MessagesToIdentifiers(l [][]byte) []flow.Identifier
- func TransactionResultToMessage(result access.TransactionResult) *accessproto.TransactionResultResponse
- func TransactionToMessage(tb flow.TransactionBody) *entitiesproto.Transaction
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyMessage = errors.New("protobuf message is empty")
Functions ¶
func AccountKeyToMessage ¶
func AccountKeyToMessage(a flow.AccountPublicKey) (*entitiesproto.AccountKey, error)
func AccountToMessage ¶
func AccountToMessage(a *flow.Account) (*entitiesproto.Account, error)
func BlockHeaderToMessage ¶
func BlockHeaderToMessage(h *flow.Header) (*entitiesproto.BlockHeader, error)
func BlockToMessage ¶
func BlockToMessage(h *flow.Block) (*entitiesproto.Block, error)
func EventToMessage ¶
func EventToMessage(e flow.Event) *entitiesproto.Event
func EventsToMessages ¶
func EventsToMessages(flowEvents []flow.Event) []*entitiesproto.Event
func IdentifierToMessage ¶
func IdentifierToMessage(i flow.Identifier) []byte
func IdentifiersToMessages ¶
func IdentifiersToMessages(l []flow.Identifier) [][]byte
func LightCollectionToMessage ¶
func LightCollectionToMessage(c *flow.LightCollection) (*entitiesproto.Collection, error)
func MessageToAccountKey ¶
func MessageToAccountKey(m *entitiesproto.AccountKey) (*flow.AccountPublicKey, error)
func MessageToIdentifier ¶
func MessageToIdentifier(b []byte) flow.Identifier
func MessageToTransaction ¶
func MessageToTransaction(m *entitiesproto.Transaction, chain flow.Chain) (flow.TransactionBody, error)
func MessagesToIdentifiers ¶
func MessagesToIdentifiers(l [][]byte) []flow.Identifier
func TransactionResultToMessage ¶
func TransactionResultToMessage(result access.TransactionResult) *accessproto.TransactionResultResponse
func TransactionToMessage ¶
func TransactionToMessage(tb flow.TransactionBody) *entitiesproto.Transaction
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.