Documentation ¶
Index ¶
- type AuthenticateHandler
- type BaseHandler
- func (h *BaseHandler) GetAWSS3Client() (*s3.S3, error)
- func (h *BaseHandler) GetAWSSessionId(awsAccessKeyId string, awsSessionToken string) string
- func (h *BaseHandler) GetAuthorization(r *http.Request) (string, error)
- func (h *BaseHandler) NewAuthorization(r *http.Request, user string) (string, error)
- func (h *BaseHandler) ParseAuthorization(str string) (*jwt.StandardClaims, error)
- func (h *BaseHandler) ParseBody(inputBytes []byte, format string) (interface{}, error)
- func (h *BaseHandler) RespondWithError(w http.ResponseWriter, err error, format string) error
- func (h *BaseHandler) RespondWithNotImplemented(w http.ResponseWriter, format string) error
- func (h *BaseHandler) RespondWithObject(w http.ResponseWriter, statusCode int, obj interface{}, format string) error
- type GroupHandler
- type HealthHandler
- type HomeHandler
- type ItemHandler
- func (h *ItemHandler) Delete(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
- func (h *ItemHandler) Get(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
- func (h *ItemHandler) Post(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
- func (h *ItemHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type ItemsHandler
- type JobExecHandler
- type LayerMaskHandler
- type LayerTileHandler
- type ObjectHandler
- type ServiceExecHandler
- type SwaggerHandler
- func (h *SwaggerHandler) BuildDefinitions() map[string]swagger.Definition
- func (h *SwaggerHandler) BuildPaths(singular string, plural string, basepath string, t reflect.Type) map[string]swagger.Path
- func (h *SwaggerHandler) BuildSwaggerDocument() (swagger.Document, error)
- func (h *SwaggerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type WorkflowExecHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticateHandler ¶
type AuthenticateHandler struct { *BaseHandler Type reflect.Type }
func (*AuthenticateHandler) Post ¶
func (h *AuthenticateHandler) Post(w http.ResponseWriter, r *http.Request, format string) (int, interface{}, error)
func (*AuthenticateHandler) ServeHTTP ¶
func (h *AuthenticateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type BaseHandler ¶
type BaseHandler struct { Viper *viper.Viper Catalog *catalog.RailgunCatalog Requests chan request.Request Messages chan interface{} Errors chan error AwsSessionCache *gocache.Cache PublicKey *rsa.PublicKey PrivateKey *rsa.PrivateKey SessionDuration time.Duration ValidMethods []string }
func (*BaseHandler) GetAWSS3Client ¶
func (h *BaseHandler) GetAWSS3Client() (*s3.S3, error)
func (*BaseHandler) GetAWSSessionId ¶
func (h *BaseHandler) GetAWSSessionId(awsAccessKeyId string, awsSessionToken string) string
func (*BaseHandler) GetAuthorization ¶
func (h *BaseHandler) GetAuthorization(r *http.Request) (string, error)
func (*BaseHandler) NewAuthorization ¶
func (*BaseHandler) ParseAuthorization ¶
func (h *BaseHandler) ParseAuthorization(str string) (*jwt.StandardClaims, error)
func (*BaseHandler) ParseBody ¶
func (h *BaseHandler) ParseBody(inputBytes []byte, format string) (interface{}, error)
func (*BaseHandler) RespondWithError ¶
func (h *BaseHandler) RespondWithError(w http.ResponseWriter, err error, format string) error
func (*BaseHandler) RespondWithNotImplemented ¶
func (h *BaseHandler) RespondWithNotImplemented(w http.ResponseWriter, format string) error
func (*BaseHandler) RespondWithObject ¶
func (h *BaseHandler) RespondWithObject(w http.ResponseWriter, statusCode int, obj interface{}, format string) error
type GroupHandler ¶
type GroupHandler struct { *BaseHandler Type reflect.Type }
func (*GroupHandler) Get ¶
func (h *GroupHandler) Get(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
func (*GroupHandler) Post ¶
func (h *GroupHandler) Post(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
func (*GroupHandler) ServeHTTP ¶
func (h *GroupHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HealthHandler ¶
type HealthHandler struct {
*BaseHandler
}
func (*HealthHandler) ServeHTTP ¶
func (h *HealthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HomeHandler ¶
type HomeHandler struct {
*BaseHandler
}
func (*HomeHandler) ServeHTTP ¶
func (h *HomeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ItemHandler ¶
type ItemHandler struct { *BaseHandler Singular string Plural string Type reflect.Type }
func (*ItemHandler) Delete ¶
func (h *ItemHandler) Delete(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
func (*ItemHandler) Get ¶
func (h *ItemHandler) Get(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
func (*ItemHandler) Post ¶
func (h *ItemHandler) Post(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
func (*ItemHandler) ServeHTTP ¶
func (h *ItemHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ItemsHandler ¶
type ItemsHandler struct { *BaseHandler AwsSessionCache *gocache.Cache DflFuncs dfl.FunctionMap }
func (*ItemsHandler) Run ¶
func (h *ItemsHandler) Run(w http.ResponseWriter, r *http.Request, vars map[string]string, qs request.QueryString) error
func (*ItemsHandler) ServeHTTP ¶
func (h *ItemsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type JobExecHandler ¶
type JobExecHandler struct {
*BaseHandler
}
func (*JobExecHandler) Post ¶
func (h *JobExecHandler) Post(w http.ResponseWriter, r *http.Request, format string, vars map[string]string) (interface{}, error)
func (*JobExecHandler) ServeHTTP ¶
func (h *JobExecHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LayerMaskHandler ¶
type LayerMaskHandler struct {
*BaseHandler
}
func (*LayerMaskHandler) Run ¶
func (h *LayerMaskHandler) Run(w http.ResponseWriter, r *http.Request, vars map[string]string, qs request.QueryString) error
func (*LayerMaskHandler) ServeHTTP ¶
func (h *LayerMaskHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LayerTileHandler ¶
type LayerTileHandler struct {
*BaseHandler
}
func (*LayerTileHandler) Get ¶
func (h *LayerTileHandler) Get(w http.ResponseWriter, r *http.Request, format string) (interface{}, error)
func (*LayerTileHandler) ServeHTTP ¶
func (h *LayerTileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ObjectHandler ¶
type ObjectHandler struct { *BaseHandler Object interface{} }
func (*ObjectHandler) ServeHTTP ¶
func (h *ObjectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ServiceExecHandler ¶
type ServiceExecHandler struct { *BaseHandler Cache *gocache.Cache }
func (*ServiceExecHandler) Post ¶
func (h *ServiceExecHandler) Post(w http.ResponseWriter, r *http.Request, format string, vars map[string]string) (interface{}, error)
func (*ServiceExecHandler) ServeHTTP ¶
func (h *ServiceExecHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SwaggerHandler ¶
type SwaggerHandler struct {
*BaseHandler
}
func (*SwaggerHandler) BuildDefinitions ¶
func (h *SwaggerHandler) BuildDefinitions() map[string]swagger.Definition
func (*SwaggerHandler) BuildPaths ¶
func (*SwaggerHandler) BuildSwaggerDocument ¶
func (h *SwaggerHandler) BuildSwaggerDocument() (swagger.Document, error)
func (*SwaggerHandler) ServeHTTP ¶
func (h *SwaggerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WorkflowExecHandler ¶
type WorkflowExecHandler struct {
*BaseHandler
}
func (*WorkflowExecHandler) Post ¶
func (h *WorkflowExecHandler) Post(w http.ResponseWriter, r *http.Request, format string, vars map[string]string) (interface{}, error)
func (*WorkflowExecHandler) ServeHTTP ¶
func (h *WorkflowExecHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.