Documentation ¶
Index ¶
- type CreateExerciseRequest
- type CreateExerciseResponse
- type CreateParametersUserRequest
- type CreateParametersUserResponse
- type CreateTreningRequest
- type CreateTreningResponse
- type DetailExerciseRequest
- type DetailExerciseResponse
- type DetailParametersUserRequest
- type DetailParametersUserResponse
- type DetailTreningRequest
- type DetailTreningResponse
- type Exercise
- type ExerciseType
- type ListExerciseRequest
- type ListExerciseResponse
- type ListTreningRequest
- type ListTreningResponse
- type ParametersUser
- type Trening
- type UpdateTreningExercisesRequest
- type UpdateTreningExercisesResponse
- type UpdateTreningRequest
- type UpdateTreningResponse
- type UpdateTreningStatusRequest
- type UpdateTreningStatusResponse
- type UpdateUserImageRequest
- type UpdateUserImageResponse
- type UpdateUserParamsRequest
- type UpdateUserParamsResponse
- type UserActivity
- type UserDiet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateExerciseRequest ¶
type CreateExerciseRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Duration time.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` Relax time.Duration `protobuf:"bytes,3,opt,name=relax,proto3" json:"relax,omitempty"` Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` NumberOfSets int32 `json:"number_of_sets,omitempty"` NumberOfRepetitions int32 `json:"number_of_repetitions,omitempty"` Type ExerciseType `json:"type,omitempty"` UserID string UID string }
type CreateExerciseResponse ¶
type CreateParametersUserRequest ¶
type CreateParametersUserRequest struct { Weight int32 `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"` Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` Gender int32 `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"` Activity UserActivity `protobuf:"varint,5,opt,name=activity,proto3,enum=trening.UserActivity" json:"activity,omitempty"` Diet UserDiet `protobuf:"varint,6,opt,name=diet,proto3,enum=trening.UserDiet" json:"diet,omitempty"` DesiredWeight int32 `protobuf:"varint,7,opt,name=desired_weight,json=desiredWeight,proto3" json:"desired_weight,omitempty"` Eat int32 `protobuf:"varint,8,opt,name=eat,proto3" json:"eat,omitempty"` UserID string }
type CreateTreningRequest ¶
type CreateTreningRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Interval time.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` Exercises []*Exercise `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"` UserID string Date time.Time }
type CreateTreningResponse ¶
type DetailExerciseRequest ¶
type DetailExerciseResponse ¶
type DetailParametersUserResponse ¶
type DetailParametersUserResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *ParametersUser `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
type DetailTreningRequest ¶
type DetailTreningResponse ¶
type Exercise ¶
type Exercise struct { Name string `json:"name,omitempty"` Duration time.Duration `json:"duration,omitempty"` Relax time.Duration `json:"relax,omitempty"` Count int32 `json:"count,omitempty"` NumberOfSets int32 `json:"number_of_sets,omitempty"` NumberOfRepetitions int32 `json:"number_of_repetitions,omitempty"` Type ExerciseType `json:"type,omitempty"` UID string `json:"uid,omitempty"` Image string `json:"image,omitempty"` Video string `json:"video,omitempty"` Description string `json:"description,omitempty"` Technique string `json:"technique,omitempty"` Mistake string `json:"mistake,omitempty"` Weight int32 `json:"weight,omitempty"` }
type ExerciseType ¶
type ExerciseType int32
type ListExerciseRequest ¶
type ListExerciseRequest struct {
UserID string
}
type ListExerciseResponse ¶
type ListTreningRequest ¶
type ListTreningResponse ¶
type ParametersUser ¶
type ParametersUser struct { Weight int32 `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"` Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` Gender int32 `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"` Activity UserActivity `protobuf:"varint,5,opt,name=activity,proto3,enum=trening.UserActivity" json:"activity,omitempty"` Diet UserDiet `protobuf:"varint,6,opt,name=diet,proto3,enum=trening.UserDiet" json:"diet,omitempty"` DesiredWeight int32 `protobuf:"varint,7,opt,name=desired_weight,json=desiredWeight,proto3" json:"desired_weight,omitempty"` Eat int32 `protobuf:"varint,8,opt,name=eat,proto3" json:"eat,omitempty"` Username string `protobuf:"varint,8,opt,name=username,proto3" json:"username,omitempty"` UID string Image string }
type Trening ¶
type Trening struct { UID string Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Interval time.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` Exercises []*Exercise `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"` Date time.Time `json:"date" db:"date"` Image string `json:"image"` }
type UpdateTreningRequest ¶
type UpdateTreningRequest struct { ID string Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Interval time.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` Exercises []*Exercise `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"` UserID string }
type UpdateTreningResponse ¶
type UpdateTreningResponse struct { }
type UpdateUserImageRequest ¶
type UpdateUserImageResponse ¶
type UpdateUserImageResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Code int `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` }
type UpdateUserParamsRequest ¶
type UpdateUserParamsRequest struct { Weight int32 `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"` Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` Gender int32 `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"` Activity UserActivity `protobuf:"varint,5,opt,name=activity,proto3,enum=trening.UserActivity" json:"activity,omitempty"` Diet UserDiet `protobuf:"varint,6,opt,name=diet,proto3,enum=trening.UserDiet" json:"diet,omitempty"` DesiredWeight int32 `protobuf:"varint,7,opt,name=desired_weight,json=desiredWeight,proto3" json:"desired_weight,omitempty"` Eat int32 `protobuf:"varint,8,opt,name=eat,proto3" json:"eat,omitempty"` UserID string UID string }
type UserActivity ¶
type UserActivity int32
Click to show internal directories.
Click to hide internal directories.