model

package
v0.0.0-...-3ec3138 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	// contains filtered or unexported fields
}

func NewPayload

func NewPayload(message []byte, key string) (*Payload, error)

func (*Payload) GetDate

func (p *Payload) GetDate() (*time.Time, error)

func (*Payload) GetKey

func (p *Payload) GetKey() string

func (*Payload) GetMessage

func (p *Payload) GetMessage() []byte

func (*Payload) GetUnit

func (p *Payload) GetUnit() string

type Trip

type Trip struct {
	Year  int    `json:"year"`
	Month int    `json:"month"`
	Day   int    `json:"day"`
	Unit  string `json:"unit"`
}

func NewTrip

func NewTrip(date time.Time, unit string) *Trip

Jump to

Keyboard shortcuts

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