Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnvConfig ¶
type EnvConfig struct { ServerPort string `mapstructure:"SERVER_PORT"` ServerAddr string `mapstructure:"SERVER_ADDR"` MongodbUri string `mapstructure:"MONGO_URI"` MongodbDatabase string `mapstructure:"MONGO_DATABASE"` UseRedis bool `mapstructure:"USE_REDIS"` RedisDefaultAddr string `mapstructure:"REDIS_DEFAULT_ADDR"` JWTSecretKey string `mapstructure:"JWT_SECRET"` JWTAccessExpirationMinutes int `mapstructure:"JWT_ACCESS_EXPIRATION_MINUTES"` JWTRefreshExpirationDays int `mapstructure:"JWT_REFRESH_EXPIRATION_DAYS"` Mode string `mapstructure:"MODE"` }
type LoginRequest ¶
func (LoginRequest) Validate ¶
func (a LoginRequest) Validate() error
type NoteRequest ¶
func (NoteRequest) Validate ¶
func (a NoteRequest) Validate() error
type RefreshRequest ¶
type RefreshRequest struct {
Token string `json:"token"`
}
func (RefreshRequest) Validate ¶
func (a RefreshRequest) Validate() error
type RegisterRequest ¶
type RegisterRequest struct { Name string `json:"name"` Email string `json:"email"` Password string `json:"password"` }
func (RegisterRequest) Validate ¶
func (a RegisterRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.