Documentation
¶
Index ¶
- func Add(r chi.Router, routes ...AddRoutesFn)
- func Print(r chi.Router, out io.Writer) error
- type AccessEndpoints
- type AddRoutesFn
- func NewAccessRoutes(endpoints *AccessEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
- func NewAuthRoutes(endpoints *AuthEndpoints) AddRoutesFn
- func NewBigQueryRoutes(endpoints *BigQueryEndpoints) AddRoutesFn
- func NewDataProductsRoutes(endpoints *DataProductsEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
- func NewInsightProductRoutes(endpoints *InsightProductEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
- func NewJoinableViewsRoutes(endpoints *JoinableViewsEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
- func NewKeywordRoutes(endpoints *KeywordEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
- func NewMetabaseRoutes(endpoints *MetabaseEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
- func NewMetricsRoutes(endpoints *MetricsEndpoints) AddRoutesFn
- func NewPollyRoutes(endpoints *PollyEndpoints) AddRoutesFn
- func NewProductAreaRoutes(endpoints *ProductAreaEndpoints) AddRoutesFn
- func NewSearchRoutes(endpoints *SearchEndpoints) AddRoutesFn
- func NewSlackRoutes(endpoints *SlackEndpoints) AddRoutesFn
- func NewStoryRoutes(endpoints *StoryEndpoints, auth func(http.Handler) http.Handler, ...) AddRoutesFn
- func NewTeamkatalogenRoutes(endpoints *TeamkatalogenEndpoints) AddRoutesFn
- func NewTokensRoutes(endpoints *TokensEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
- func NewUserRoutes(endpoints *UserEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
- type AuthEndpoints
- type BigQueryEndpoints
- type DataProductsEndpoints
- type InsightProductEndpoints
- type JoinableViewsEndpoints
- type KeywordEndpoints
- type MetabaseEndpoints
- type MetricsEndpoints
- type PollyEndpoints
- type ProductAreaEndpoints
- type SearchEndpoints
- type SlackEndpoints
- type StoryEndpoints
- type TeamkatalogenEndpoints
- type TokensEndpoints
- type UserEndpoints
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(r chi.Router, routes ...AddRoutesFn)
Types ¶
type AccessEndpoints ¶
type AccessEndpoints struct { GetAccessRequests http.HandlerFunc ProcessAccessRequest http.HandlerFunc CreateAccessRequest http.HandlerFunc DeleteAccessRequest http.HandlerFunc UpdateAccessRequest http.HandlerFunc GrantAccessToDataset http.HandlerFunc RevokeAccessToDataset http.HandlerFunc }
func NewAccessEndpoints ¶
func NewAccessEndpoints(log zerolog.Logger, h *handlers.AccessHandler) *AccessEndpoints
type AddRoutesFn ¶
func NewAccessRoutes ¶
func NewAccessRoutes(endpoints *AccessEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
func NewAuthRoutes ¶
func NewAuthRoutes(endpoints *AuthEndpoints) AddRoutesFn
func NewBigQueryRoutes ¶
func NewBigQueryRoutes(endpoints *BigQueryEndpoints) AddRoutesFn
func NewDataProductsRoutes ¶
func NewDataProductsRoutes(endpoints *DataProductsEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
func NewInsightProductRoutes ¶
func NewInsightProductRoutes(endpoints *InsightProductEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
func NewJoinableViewsRoutes ¶
func NewJoinableViewsRoutes(endpoints *JoinableViewsEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
func NewKeywordRoutes ¶
func NewKeywordRoutes(endpoints *KeywordEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
func NewMetabaseRoutes ¶
func NewMetabaseRoutes(endpoints *MetabaseEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
func NewMetricsRoutes ¶
func NewMetricsRoutes(endpoints *MetricsEndpoints) AddRoutesFn
func NewPollyRoutes ¶
func NewPollyRoutes(endpoints *PollyEndpoints) AddRoutesFn
func NewProductAreaRoutes ¶
func NewProductAreaRoutes(endpoints *ProductAreaEndpoints) AddRoutesFn
func NewSearchRoutes ¶
func NewSearchRoutes(endpoints *SearchEndpoints) AddRoutesFn
func NewSlackRoutes ¶
func NewSlackRoutes(endpoints *SlackEndpoints) AddRoutesFn
func NewStoryRoutes ¶
func NewStoryRoutes( endpoints *StoryEndpoints, auth func(http.Handler) http.Handler, nadaToken func(http.Handler) http.Handler, ) AddRoutesFn
func NewTeamkatalogenRoutes ¶
func NewTeamkatalogenRoutes(endpoints *TeamkatalogenEndpoints) AddRoutesFn
func NewTokensRoutes ¶
func NewTokensRoutes(endpoints *TokensEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
func NewUserRoutes ¶
func NewUserRoutes(endpoints *UserEndpoints, auth func(http.Handler) http.Handler) AddRoutesFn
type AuthEndpoints ¶
type AuthEndpoints struct { Login http.HandlerFunc Callback http.HandlerFunc Logout http.HandlerFunc }
func NewAuthEndpoints ¶
func NewAuthEndpoints(api api.HTTP) *AuthEndpoints
type BigQueryEndpoints ¶
type BigQueryEndpoints struct { GetBigQueryColumns http.HandlerFunc GetBigQueryTables http.HandlerFunc GetBigQueryDatasets http.HandlerFunc SyncBigQueryTables http.HandlerFunc }
func NewBigQueryEndpoints ¶
func NewBigQueryEndpoints(log zerolog.Logger, h *handlers.BigQueryHandler) *BigQueryEndpoints
type DataProductsEndpoints ¶
type DataProductsEndpoints struct { GetDataProduct http.HandlerFunc CreateDataProduct http.HandlerFunc DeleteDataProduct http.HandlerFunc UpdateDataProduct http.HandlerFunc GetDatasetsMinimal http.HandlerFunc GetDataset http.HandlerFunc CreateDataset http.HandlerFunc UpdateDataset http.HandlerFunc DeleteDataset http.HandlerFunc GetAccessiblePseudoDatasetsForUser http.HandlerFunc }
func NewDataProductsEndpoints ¶
func NewDataProductsEndpoints(log zerolog.Logger, h *handlers.DataProductsHandler) *DataProductsEndpoints
type InsightProductEndpoints ¶
type InsightProductEndpoints struct { GetInsightProduct http.HandlerFunc CreateInsightProduct http.HandlerFunc UpdateInsightProduct http.HandlerFunc DeleteInsightProduct http.HandlerFunc }
func NewInsightProductEndpoints ¶
func NewInsightProductEndpoints(log zerolog.Logger, h *handlers.InsightProductHandler) *InsightProductEndpoints
type JoinableViewsEndpoints ¶
type JoinableViewsEndpoints struct { CreateJoinableViews http.HandlerFunc GetJoinableViewsForUser http.HandlerFunc GetJoinableView http.HandlerFunc }
func NewJoinableViewsEndpoints ¶
func NewJoinableViewsEndpoints(log zerolog.Logger, h *handlers.JoinableViewsHandler) *JoinableViewsEndpoints
type KeywordEndpoints ¶
type KeywordEndpoints struct { GetKeywordsListSortedByPopularity http.HandlerFunc UpdateKeywords http.HandlerFunc }
func NewKeywordEndpoints ¶
func NewKeywordEndpoints(log zerolog.Logger, h *handlers.KeywordsHandler) *KeywordEndpoints
type MetabaseEndpoints ¶
type MetabaseEndpoints struct {
MapDataset http.HandlerFunc
}
func NewMetabaseEndpoints ¶
func NewMetabaseEndpoints(log zerolog.Logger, h *handlers.MetabaseHandler) *MetabaseEndpoints
type MetricsEndpoints ¶
func NewMetricsEndpoints ¶
func NewMetricsEndpoints(promReg *prometheus.Registry) *MetricsEndpoints
type PollyEndpoints ¶
type PollyEndpoints struct {
SearchPolly http.HandlerFunc
}
func NewPollyEndpoints ¶
func NewPollyEndpoints(log zerolog.Logger, h *handlers.PollyHandler) *PollyEndpoints
type ProductAreaEndpoints ¶
type ProductAreaEndpoints struct { GetProductAreas http.HandlerFunc GetProductAreaWithAssets http.HandlerFunc }
func NewProductAreaEndpoints ¶
func NewProductAreaEndpoints(log zerolog.Logger, h *handlers.ProductAreasHandler) *ProductAreaEndpoints
type SearchEndpoints ¶
type SearchEndpoints struct {
Search http.HandlerFunc
}
func NewSearchEndpoints ¶
func NewSearchEndpoints(log zerolog.Logger, h *handlers.SearchHandler) *SearchEndpoints
type SlackEndpoints ¶
type SlackEndpoints struct {
IsValidSlackChannel http.HandlerFunc
}
func NewSlackEndpoints ¶
func NewSlackEndpoints(log zerolog.Logger, h *handlers.SlackHandler) *SlackEndpoints
type StoryEndpoints ¶
type StoryEndpoints struct { GetObject http.HandlerFunc GetIndex http.HandlerFunc CreateStoryForTeam http.HandlerFunc RecreateStoryFiles http.HandlerFunc AppendStoryFiles http.HandlerFunc GetStory http.HandlerFunc CreateStory http.HandlerFunc UpdateStory http.HandlerFunc DeleteStory http.HandlerFunc }
func NewStoryEndpoints ¶
func NewStoryEndpoints(log zerolog.Logger, h *handlers.StoryHandler) *StoryEndpoints
type TeamkatalogenEndpoints ¶
type TeamkatalogenEndpoints struct {
SearchTeamKatalogen http.HandlerFunc
}
func NewTeamkatalogenEndpoints ¶
func NewTeamkatalogenEndpoints(log zerolog.Logger, h *handlers.TeamkatalogenHandler) *TeamkatalogenEndpoints
type TokensEndpoints ¶
type TokensEndpoints struct { GetAllTeamTokens http.HandlerFunc RotateNadaToken http.HandlerFunc }
func NewTokensEndpoints ¶
func NewTokensEndpoints(log zerolog.Logger, h *handlers.TokenHandler) *TokensEndpoints
type UserEndpoints ¶
type UserEndpoints struct {
GetUserData http.HandlerFunc
}
func NewUserEndpoints ¶
func NewUserEndpoints(log zerolog.Logger, h *handlers.UserHandler) *UserEndpoints
Source Files
¶
- routes.go
- routes_access.go
- routes_auth.go
- routes_big_query.go
- routes_data_products.go
- routes_insight_product.go
- routes_joinable_views.go
- routes_keywords.go
- routes_metabase.go
- routes_metrics.go
- routes_polly.go
- routes_productareas.go
- routes_search.go
- routes_slack.go
- routes_story.go
- routes_teamkatalogen.go
- routes_tokens.go
- routes_user.go
Click to show internal directories.
Click to hide internal directories.