models

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

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

Go to latest
Published: Oct 6, 2020 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 {
	CorrelationId string `json:"correlation-id"`
	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