Documentation
¶
Index ¶
- func CreateTraningItem(ctx context.Context, trainingItem *model.TrainingItem) error
- func CreateUser(ctx context.Context, user *model.User) 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 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 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 CreateTraningItem ¶
func CreateTraningItem(ctx context.Context, trainingItem *model.TrainingItem) error
func GenerateToken ¶ added in v0.0.2
func GetTraningItem ¶
func GetTraningItems ¶
func GetUserByEmail ¶ added in v0.0.2
func GetUserById ¶ added in v0.0.2
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.