db

package
v0.0.0-...-c0b74e5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New() (Store, error)

return a new store or err

func (Store) DeleteRocket

func (s Store) DeleteRocket(id string) error

func (Store) GetRocketByID

func (s Store) GetRocketByID(id string) (rocket.Rocket, error)

retrive a rocket from the database by id

func (Store) InsertRocket

func (s Store) InsertRocket(rkt rocket.Rocket) (rocket.Rocket, error)

func (*Store) Migrate

func (s *Store) Migrate() error

Jump to

Keyboard shortcuts

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