Documentation ¶
Index ¶
- Variables
- func ConfigureGraphQLRoute(route httproute.Route) []httproute.Route
- func ConfigurePresignImagesUploadRoute(route httproute.Route) httproute.Route
- func ConfigureUserExportCreateRoute(route httproute.Route) httproute.Route
- func ConfigureUserExportGetRoute(route httproute.Route) httproute.Route
- func ConfigureUserImportCreateRoute(route httproute.Route) httproute.Route
- func ConfigureUserImportGetRoute(route httproute.Route) httproute.Route
- type GraphQLHandler
- type JSONResponseWriter
- type PresignImagesUploadHandler
- type PresignImagesUploadHandlerLogger
- type PresignImagesUploadResponse
- type PresignProvider
- type UIParamMiddleware
- type UserExportCreateHandler
- type UserExportCreateHandlerCloudStorage
- type UserExportCreateHandlerUserExportService
- type UserExportCreateProducer
- type UserExportGetHandler
- type UserExportGetHandlerCloudStorage
- type UserExportGetProducer
- type UserExportUsageLimiter
- type UserImportCreateHandler
- type UserImportGetHandler
- type UserImportJobEnqueuer
- type UserImportJobGetter
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(UIParamMiddleware), "*"), wire.Struct(new(GraphQLHandler), "*"), wire.Struct(new(PresignImagesUploadHandler), "*"), wire.Struct(new(UserImportCreateHandler), "*"), wire.Struct(new(UserImportGetHandler), "*"), wire.Struct(new(UserExportCreateHandler), "*"), wire.Struct(new(UserExportGetHandler), "*"), NewPresignImagesUploadHandlerLogger, )
Functions ¶
Types ¶
type GraphQLHandler ¶
func (*GraphQLHandler) ServeHTTP ¶
func (h *GraphQLHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type JSONResponseWriter ¶
type JSONResponseWriter interface {
WriteResponse(rw http.ResponseWriter, resp *api.Response)
}
type PresignImagesUploadHandler ¶
type PresignImagesUploadHandler struct { JSON JSONResponseWriter HTTPProto httputil.HTTPProto HTTPHost httputil.HTTPHost AppID config.AppID PresignProvider PresignProvider Logger PresignImagesUploadHandlerLogger }
func (*PresignImagesUploadHandler) ServeHTTP ¶
func (h *PresignImagesUploadHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type PresignImagesUploadHandlerLogger ¶
func NewPresignImagesUploadHandlerLogger ¶
func NewPresignImagesUploadHandlerLogger(lf *log.Factory) PresignImagesUploadHandlerLogger
type PresignImagesUploadResponse ¶
type PresignImagesUploadResponse struct {
UploadURL string `json:"upload_url"`
}
type PresignProvider ¶
type UIParamMiddleware ¶
type UIParamMiddleware struct{}
type UserExportCreateHandler ¶
type UserExportCreateHandler struct { AppID config.AppID AdminAPIFeatureConfig *config.AdminAPIFeatureConfig JSON JSONResponseWriter Producer UserExportCreateProducer UsageLimiter UserExportUsageLimiter CloudStorage UserExportCreateHandlerCloudStorage Service UserExportCreateHandlerUserExportService }
func (*UserExportCreateHandler) ServeHTTP ¶
func (h *UserExportCreateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserExportCreateHandlerUserExportService ¶
type UserExportCreateHandlerUserExportService interface {
ParseExportRequest(w http.ResponseWriter, r *http.Request) (*userexport.Request, error)
}
type UserExportCreateProducer ¶
type UserExportCreateProducer interface { NewTask(appID string, input json.RawMessage, taskIDPrefix string) *redisqueue.Task EnqueueTask(ctx context.Context, task *redisqueue.Task) error }
type UserExportGetHandler ¶
type UserExportGetHandler struct { AppID config.AppID JSON JSONResponseWriter UserExports UserExportGetProducer CloudStorage UserExportGetHandlerCloudStorage }
func (*UserExportGetHandler) ServeHTTP ¶
func (h *UserExportGetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserExportGetProducer ¶
type UserExportGetProducer interface {
GetTask(ctx context.Context, item *redisqueue.QueueItem) (*redisqueue.Task, error)
}
type UserExportUsageLimiter ¶
type UserExportUsageLimiter interface {
Reserve(ctx context.Context, name usage.LimitName, config *config.UsageLimitConfig) (*usage.Reservation, error)
}
type UserImportCreateHandler ¶
type UserImportCreateHandler struct { JSON JSONResponseWriter UserImports UserImportJobEnqueuer }
func (*UserImportCreateHandler) ServeHTTP ¶
func (h *UserImportCreateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserImportGetHandler ¶
type UserImportGetHandler struct { AppID config.AppID JSON JSONResponseWriter UserImports UserImportJobGetter }
func (*UserImportGetHandler) ServeHTTP ¶
func (h *UserImportGetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserImportJobEnqueuer ¶
type UserImportJobEnqueuer interface {
EnqueueJob(ctx context.Context, request *userimport.Request) (*userimport.Response, error)
}
type UserImportJobGetter ¶
Click to show internal directories.
Click to hide internal directories.