routes

package
v0.0.0-...-7b47c52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(r chi.Router, routes ...AddRoutesFn)

func Print

func Print(r chi.Router, out io.Writer) error

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

type AddRoutesFn func(router chi.Router)

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
}

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
}

type InsightProductEndpoints

type InsightProductEndpoints struct {
	GetInsightProduct    http.HandlerFunc
	CreateInsightProduct http.HandlerFunc
	UpdateInsightProduct http.HandlerFunc
	DeleteInsightProduct http.HandlerFunc
}

type JoinableViewsEndpoints

type JoinableViewsEndpoints struct {
	CreateJoinableViews     http.HandlerFunc
	GetJoinableViewsForUser http.HandlerFunc
	GetJoinableView         http.HandlerFunc
}

type KeywordEndpoints

type KeywordEndpoints struct {
	GetKeywordsListSortedByPopularity http.HandlerFunc
	UpdateKeywords                    http.HandlerFunc
}

type MetabaseEndpoints

type MetabaseEndpoints struct {
	MapDataset http.HandlerFunc
}

type MetricsEndpoints

type MetricsEndpoints struct {
	GetMetrics http.Handler
}

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
}

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
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL