api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePartRequest

type CreatePartRequest struct {
	Name string `json:"part_name"`
}

CreatePartRequest is the expected payload to create a new part.

type Part

type Part struct {
	ID   uuid.UUID `json:"part_id"`
	Name string    `json:"part_name"`

	TimeMetadata
}

Part .

type TimeMetadata

type TimeMetadata struct {
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
	DeletedAt *time.Time `json:"deleted_at,omitempty"`
}

TimeMetadata is the common time metadata fields for all components.

Jump to

Keyboard shortcuts

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