Documentation ¶
Index ¶
Constants ¶
View Source
const ( FakeLocalToken = "FAKE_LOCAL_TOKEN" FakeUserID = 999 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(allowFakeAuth bool, secret []byte) *AuthService
func (*AuthService) GetUserIdFromContext ¶
func (as *AuthService) GetUserIdFromContext(c *gin.Context) uint
type Config ¶
type Config struct { // базовые параметры IsDebug bool HttpPort string ArtWarehouseURL string OriginWarehouseURL string // подключения к внешним службам DbDSN string RedisAddr string RedisPassword string // auth JwtSecret string AllowFakeAuth bool ArtchitectHost string ArtchitectorID int // telegram BotToken string ChatArtchitectChoice int64 ChatArtchitectorChoice int64 ArtchitectChoiceEnabled bool }
Click to show internal directories.
Click to hide internal directories.