Documentation ¶
Index ¶
- Constants
- type Axis
- type Position
- type Preferences
- type Repository
- func (r *Repository) Close()
- func (r *Repository) DeletePosition(id int) error
- func (r *Repository) ExportPreferences(w http.ResponseWriter) error
- func (r *Repository) FindCalibration() (Position, error)
- func (r *Repository) FindFavoritePositions() ([]Position, error)
- func (r *Repository) FindPosition(id int) (Position, error)
- func (r *Repository) FindPositions() ([]Position, error)
- func (r *Repository) Get(bucketName string, key interface{}, to interface{}) error
- func (r *Repository) GetPreferences() (Preferences, error)
- func (r *Repository) SavePosition(entity *Position) error
- func (r *Repository) UpdatePreferences(updated Preferences) (Preferences, error)
- type Unit
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Preferences ¶
type Preferences struct { ID int `storm:"id" json:"id"` Version int `json:"version"` DimensionLength float64 `json:"dimensionLength"` DimensionWidth float64 `json:"dimensionWidth"` DimensionUnits Unit `json:"dimensionUnits"` OrientationPitch Axis `json:"orientationPitch"` OrientationRoll Axis `json:"orientationRoll"` OrientationInvertPitch bool `json:"orientationInvertPitch"` OrientationInvertRoll bool `json:"orientationInvertRoll"` }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New(path string) (*Repository, error)
func (*Repository) Close ¶
func (r *Repository) Close()
func (*Repository) DeletePosition ¶
func (r *Repository) DeletePosition(id int) error
func (*Repository) ExportPreferences ¶
func (r *Repository) ExportPreferences(w http.ResponseWriter) error
func (*Repository) FindCalibration ¶
func (r *Repository) FindCalibration() (Position, error)
func (*Repository) FindFavoritePositions ¶
func (r *Repository) FindFavoritePositions() ([]Position, error)
func (*Repository) FindPosition ¶
func (r *Repository) FindPosition(id int) (Position, error)
func (*Repository) FindPositions ¶
func (r *Repository) FindPositions() ([]Position, error)
func (*Repository) Get ¶
func (r *Repository) Get(bucketName string, key interface{}, to interface{}) error
func (*Repository) GetPreferences ¶
func (r *Repository) GetPreferences() (Preferences, error)
func (*Repository) SavePosition ¶
func (r *Repository) SavePosition(entity *Position) error
func (*Repository) UpdatePreferences ¶
func (r *Repository) UpdatePreferences(updated Preferences) (Preferences, error)
Click to show internal directories.
Click to hide internal directories.