transport

package
v0.0.0-...-c4f7e29 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ConfigureGraphQLRoute

func ConfigureGraphQLRoute(route httproute.Route) []httproute.Route

func ConfigurePresignImagesUploadRoute

func ConfigurePresignImagesUploadRoute(route httproute.Route) httproute.Route

func ConfigureUserImportCreateRoute

func ConfigureUserImportCreateRoute(route httproute.Route) httproute.Route

func ConfigureUserImportGetRoute

func ConfigureUserImportGetRoute(route httproute.Route) httproute.Route

Types

type GraphQLHandler

type GraphQLHandler struct {
	GraphQLContext *graphql.Context
	AppDatabase    *appdb.Handle
}

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

type PresignImagesUploadHandlerLogger struct{ *log.Logger }

func NewPresignImagesUploadHandlerLogger

func NewPresignImagesUploadHandlerLogger(lf *log.Factory) PresignImagesUploadHandlerLogger

type PresignImagesUploadResponse

type PresignImagesUploadResponse struct {
	UploadURL string `json:"upload_url"`
}

type PresignProvider

type PresignProvider interface {
	PresignPostRequest(url *url.URL) error
}

type UIParamMiddleware

type UIParamMiddleware struct{}

func (*UIParamMiddleware) Handle

func (m *UIParamMiddleware) Handle(next http.Handler) http.Handler

type UserImportCreateHandler

type UserImportCreateHandler struct {
	AppID       config.AppID
	JSON        JSONResponseWriter
	UserImports UserImportCreateProducer
}

func (*UserImportCreateHandler) ServeHTTP

type UserImportCreateProducer

type UserImportCreateProducer interface {
	NewTask(appID string, input json.RawMessage) *redisqueue.Task
	EnqueueTask(ctx context.Context, task *redisqueue.Task) error
}

type UserImportGetHandler

type UserImportGetHandler struct {
	AppID       config.AppID
	JSON        JSONResponseWriter
	UserImports UserImportGetProducer
}

func (*UserImportGetHandler) ServeHTTP

func (h *UserImportGetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UserImportGetProducer

type UserImportGetProducer interface {
	GetTask(ctx context.Context, item *redisqueue.QueueItem) (*redisqueue.Task, error)
}

Jump to

Keyboard shortcuts

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