package auth type Service struct { secret string admin string adminSecret string } type ProviderIndex struct { ProvidersMap map[string]string Providers []string } func NewService(secret, admin, adminSecret string) *Service { return &Service{ secret, admin, adminSecret, } } func (as *Service) Authenticate(email, password string) bool { return email == as.admin && password == as.adminSecret }