Documentation ¶
Index ¶
- type Dive
- type DiveImplementation
- func (d DiveImplementation) Create(dive Dive, createdAt time.Time) (*datastore.Key, error)
- func (d DiveImplementation) Get(key *datastore.Key) (Dive, error)
- func (d DiveImplementation) GetAggregation() ([]byte, error)
- func (d DiveImplementation) List() ([]Dive, error)
- func (d DiveImplementation) Private(dive DivePublic) Dive
- func (d DiveImplementation) Public(dive Dive) DivePublic
- func (d DiveImplementation) Update(updatedDive Dive, updatedAt time.Time) error
- type DiveInterface
- type DivePublic
- type User
- type UserImplementation
- func (u UserImplementation) CreateUpdateFromFirebase(uid string) (User, error)
- func (u UserImplementation) Get(uid string) (User, error)
- func (u UserImplementation) List() ([]User, error)
- func (u UserImplementation) Private(user UserPublic) User
- func (u UserImplementation) Public(user User) UserPublic
- type UserInterface
- type UserPublic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiveImplementation ¶
type DiveImplementation struct {
// contains filtered or unexported fields
}
func (DiveImplementation) GetAggregation ¶
func (d DiveImplementation) GetAggregation() ([]byte, error)
dive uploads dive is saved as raw in gcs task is pushed to process dive and create aggregations if task fails it will be logged task can be restarted with the information in the logs to rerun
func (DiveImplementation) List ¶
func (d DiveImplementation) List() ([]Dive, error)
func (DiveImplementation) Private ¶
func (d DiveImplementation) Private(dive DivePublic) Dive
func (DiveImplementation) Public ¶
func (d DiveImplementation) Public(dive Dive) DivePublic
type DiveInterface ¶
type DiveInterface interface { Create(dive Dive, createdAt time.Time) (*datastore.Key, error) Get(key *datastore.Key) (Dive, error) GetAggregation() ([]byte, error) List() ([]Dive, error) Public(dive Dive) DivePublic Private(dive DivePublic) Dive Update(updatedDive Dive, updatedAt time.Time) error }
func NewDiveImplementation ¶
func NewDiveImplementation(appEngineCtx context.Context, firebaseApp *firebase.App) DiveInterface
type DivePublic ¶
type DivePublic struct { Name string `json:"name"` StatTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` StartLocationLat float64 `json:"startLocationLat"` StartLocationLng float64 `json:"startLocationLng"` EndLocationLat float64 `json:"endLocationLat"` EndLocationLng float64 `json:"endLocationLng"` Aggregations []string `json:"aggregations"` }
type UserImplementation ¶
type UserImplementation struct {
// contains filtered or unexported fields
}
func (UserImplementation) CreateUpdateFromFirebase ¶
func (u UserImplementation) CreateUpdateFromFirebase(uid string) (User, error)
func (UserImplementation) List ¶
func (u UserImplementation) List() ([]User, error)
func (UserImplementation) Private ¶
func (u UserImplementation) Private(user UserPublic) User
func (UserImplementation) Public ¶
func (u UserImplementation) Public(user User) UserPublic
type UserInterface ¶
type UserInterface interface { Get(uid string) (User, error) List() ([]User, error) Public(user User) UserPublic Private(user UserPublic) User CreateUpdateFromFirebase(uid string) (User, error) }
func NewUserImplementation ¶
func NewUserImplementation(appCtx context.Context, firebaseApp *firebase.App) UserInterface
type UserPublic ¶
Click to show internal directories.
Click to hide internal directories.