cannon

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToMarshal   = errors.New("failed to marshal location")
	ErrFailedToUnmarshal = errors.New("failed to unmarshal location")
)

Functions

This section is empty.

Types

type Location

type Location struct {
	// LocationID is the location id.
	LocationID interface{} `json:"locationId" db:"location_id"`
	// CreateTime is the timestamp of when the execution record was created.
	CreateTime time.Time `json:"createTime" db:"create_time" fieldopt:"omitempty"`
	// UpdateTime is the timestamp of when the activity record was updated.
	UpdateTime time.Time `json:"updateTime" db:"update_time" fieldopt:"omitempty"`
	// NetworkId is the network id of the location.
	NetworkID string `json:"networkId" db:"network_id"`
	// Type is the type of the location.
	Type string `json:"type" db:"type"`
	// Value is the value of the location.
	Value string `json:"value" db:"value"`
}

func (*Location) Marshal

func (l *Location) Marshal(msg *xatu.CannonLocation) error

MarshalValueFromProto marshals a proto message into the Value field.

func (*Location) Unmarshal

func (l *Location) Unmarshal() (*xatu.CannonLocation, error)

Jump to

Keyboard shortcuts

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