models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Bytes         []byte // This will NOT be marshaled via the JSON below. It is only populated and read as an instance member.
	CorrelationId string
	Checksum      string
	contract.Event
}

func (Event) MarshalJSON

func (e Event) MarshalJSON() ([]byte, error)

func (Event) ToContract

func (e Event) ToContract() *contract.Event

Returns an instance of just the public contract portion of the model Event. I don't like returning a pointer from this method but I have to in order to satisfy the Filter, Format interfaces.

Jump to

Keyboard shortcuts

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