Documentation ¶
Index ¶
- func CreateTrainingRecord(ctx context.Context, trainingRecord *model.TrainingRecord) error
- func CreateTraningItem(ctx context.Context, trainingItem *model.TrainingItem) error
- func CreateUser(ctx context.Context, user *model.User) error
- func DeleteTrainingRecord(ctx context.Context, trainingRecordId int, userId int) error
- func DeleteTraningItem(ctx context.Context, id int, userId int) error
- func DeleteUser(ctx context.Context, id int) error
- func GenerateToken(userId int) (string, error)
- func GetTrainingRecord(ctx context.Context, trainingRecordId int, userId int) (*model.TrainingRecord, error)
- func GetTrainingRecords(ctx context.Context, userId int) ([]*model.TrainingRecord, error)
- func GetTraningItem(ctx context.Context, id int, userId int) (*model.TrainingItem, error)
- func GetTraningItems(ctx context.Context, userId int) ([]*model.TrainingItem, error)
- func GetUserByEmail(ctx context.Context, email string) (*model.User, error)
- func GetUserById(ctx context.Context, id int) (*model.User, error)
- func GetUsers(ctx context.Context) ([]*model.User, error)
- func Login(ctx context.Context, email string, password string) (string, *model.SafeUser, error)
- func UpdateTrainingRecord(ctx context.Context, trainingRecord *model.TrainingRecord, userId int) error
- func UpdateTraningItem(ctx context.Context, trainingItem *model.TrainingItem, userId int) error
- func UpdateUser(ctx context.Context, user *model.User) error
- func ValidateToken(token string) (int, error)
- type TableBasics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTrainingRecord ¶ added in v0.0.3
func CreateTrainingRecord(ctx context.Context, trainingRecord *model.TrainingRecord) error
func CreateTraningItem ¶
func CreateTraningItem(ctx context.Context, trainingItem *model.TrainingItem) error
func DeleteTrainingRecord ¶ added in v0.0.3
func GenerateToken ¶ added in v0.0.2
func GetTrainingRecord ¶ added in v0.0.3
func GetTrainingRecords ¶ added in v0.0.3
func GetTraningItem ¶
func GetTraningItems ¶
func GetUserByEmail ¶ added in v0.0.2
func GetUserById ¶ added in v0.0.2
func UpdateTrainingRecord ¶ added in v0.0.3
func UpdateTraningItem ¶
func ValidateToken ¶ added in v0.0.2
Types ¶
type TableBasics ¶
type TableBasics struct { DynamoDbClient anytoreDynamodb.DynamoDBService TableName string }
func NewTableBasics ¶
func NewTableBasics(tableName string) (*TableBasics, error)
Click to show internal directories.
Click to hide internal directories.