Documentation
¶
Index ¶
- Variables
- func Auth(authRepo auth.Repository) func(http.Handler) http.HandlerFunc
- func Installation(authRepo auth.Repository) func(http.Handler) http.HandlerFunc
- func NewPublicUserFromAuthUser(u auth.User) publicUser
- func NewServer(ctx context.Context) *http.Server
- func StripBearerToken(tokenWithBearer string) string
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FrontendDomains = appenv.DecodeEnvList(os.Getenv("FRONTEND_DOMAINS_LIST"))
)
Functions ¶
func Auth ¶
func Auth(authRepo auth.Repository) func(http.Handler) http.HandlerFunc
func Installation ¶
func Installation(authRepo auth.Repository) func(http.Handler) http.HandlerFunc
Inject the Installation into the request context, will respond with error if it can't find the Installation in the database or in the request headers
func StripBearerToken ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) LoggerInjector ¶
func (s *Server) LoggerInjector(h http.Handler) http.HandlerFunc
func (*Server) NewAuthRepository ¶
func (s *Server) NewAuthRepository() auth.Repository
Click to show internal directories.
Click to hide internal directories.