Documentation ¶
Index ¶
- Constants
- func MarshalID(kind string, spec interface{}) graphql.ID
- func UnmarshalKind(id graphql.ID) string
- func UnmarshalSpec(id graphql.ID, v interface{}) error
- type Asset
- type ConfirmVerificationHandler
- type GraphQLHandler
- type GraphQLSchemaHandler
- type GraphiQLHandler
- type IndexHandler
- type PreviewHandler
- type RemoveTokenHandler
- type SignupHandler
- type SignupSuccessResponse
- type Sizer
- type TokenHandler
- type UploadAssetsHandler
- type UploadAssetsSuccessResponse
- type UploadHandler
- type UserAssetsHandler
Constants ¶
View Source
const (
MB = 1 << 20
)
Variables ¶
This section is empty.
Functions ¶
func UnmarshalKind ¶
func UnmarshalSpec ¶
Types ¶
type ConfirmVerificationHandler ¶
func (ConfirmVerificationHandler) Cors ¶
func (h ConfirmVerificationHandler) Cors() *cors.Cors
func (ConfirmVerificationHandler) ServeHTTP ¶
func (h ConfirmVerificationHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type GraphQLHandler ¶
func (GraphQLHandler) Cors ¶
func (h GraphQLHandler) Cors() *cors.Cors
func (GraphQLHandler) ServeHTTP ¶
func (h GraphQLHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type GraphQLSchemaHandler ¶
func (GraphQLSchemaHandler) Cors ¶
func (h GraphQLSchemaHandler) Cors() *cors.Cors
func (GraphQLSchemaHandler) ServeHTTP ¶
func (h GraphQLSchemaHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type GraphiQLHandler ¶
func (GraphiQLHandler) Cors ¶
func (h GraphiQLHandler) Cors() *cors.Cors
func (GraphiQLHandler) ServeHTTP ¶
func (h GraphiQLHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type IndexHandler ¶
type IndexHandler struct{}
func (IndexHandler) ServeHTTP ¶
func (h IndexHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type PreviewHandler ¶
func (PreviewHandler) Cors ¶
func (h PreviewHandler) Cors() *cors.Cors
func (PreviewHandler) ServeHTTP ¶
func (h PreviewHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type RemoveTokenHandler ¶
func (RemoveTokenHandler) Cors ¶
func (h RemoveTokenHandler) Cors() *cors.Cors
func (RemoveTokenHandler) ServeHTTP ¶
func (h RemoveTokenHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type SignupHandler ¶
func (SignupHandler) Cors ¶
func (h SignupHandler) Cors() *cors.Cors
func (SignupHandler) ServeHTTP ¶
func (h SignupHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type SignupSuccessResponse ¶
type SignupSuccessResponse struct { AccessToken string `json:"access_token,omitempty"` ExpiresIn myjwt.UnixTimestamp `json:"expires_in,omitempty"` }
func (*SignupSuccessResponse) StatusHTTP ¶
func (r *SignupSuccessResponse) StatusHTTP() int
type TokenHandler ¶
func (TokenHandler) Cors ¶
func (h TokenHandler) Cors() *cors.Cors
func (TokenHandler) ServeHTTP ¶
func (h TokenHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type UploadAssetsHandler ¶
type UploadAssetsHandler struct { Conf *myconf.Config Repos *repo.Repos StorageSvc *service.StorageService }
func (UploadAssetsHandler) Cors ¶
func (h UploadAssetsHandler) Cors() *cors.Cors
func (UploadAssetsHandler) ServeHTTP ¶
func (h UploadAssetsHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type UploadAssetsSuccessResponse ¶
type UploadAssetsSuccessResponse struct {
Asset Asset `json:"asset,omitempty"`
}
func (*UploadAssetsSuccessResponse) StatusHTTP ¶
func (r *UploadAssetsSuccessResponse) StatusHTTP() int
type UploadHandler ¶
type UploadHandler struct{}
func (UploadHandler) ServeHTTP ¶
func (h UploadHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type UserAssetsHandler ¶
type UserAssetsHandler struct { Conf *myconf.Config StorageSvc *service.StorageService }
UserAssetsHandler - handler for user assets route
func (UserAssetsHandler) Cors ¶
func (h UserAssetsHandler) Cors() *cors.Cors
func (UserAssetsHandler) ServeHTTP ¶
func (h UserAssetsHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.