model

package
v0.0.0-...-e1ef45a Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SwapiWritePlanetModel

func SwapiWritePlanetModel(planet *swapi.Planet) mongo.WriteModel

func WritePlanetModel

func WritePlanetModel(planet *Planet) mongo.WriteModel

Types

type Planet

type Planet struct {
	ID      primitive.ObjectID `bson:"_id,omitempty"`
	Name    string             `bson:"name,omitempty"`
	Climate string             `bson:"weather,omitempty"`
	Terrain string             `bson:"terrain,omitempty"`
	Refs    int                `bson:"references,omitempty"`
}

Jump to

Keyboard shortcuts

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