Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Root = kit.NewRouter(httptransport.Group("/resource"))
Functions ¶
This section is empty.
Types ¶
type DownloadResource ¶ added in v1.1.0
type DownloadResource struct { httpx.MethodGet ResourceID types.SFID `in:"path" name:"resourceID"` }
DownloadResource download resource by resource id
func (*DownloadResource) Output ¶ added in v1.1.0
func (r *DownloadResource) Output(ctx context.Context) (interface{}, error)
func (*DownloadResource) Path ¶ added in v1.1.0
func (r *DownloadResource) Path() string
type GetDownloadResourceUrl ¶ added in v1.2.3
type GetDownloadResourceUrl struct { httpx.MethodGet ResourceID types.SFID `in:"path" name:"resourceID"` }
func (*GetDownloadResourceUrl) Output ¶ added in v1.2.3
func (r *GetDownloadResourceUrl) Output(ctx context.Context) (interface{}, error)
func (*GetDownloadResourceUrl) Path ¶ added in v1.2.3
func (r *GetDownloadResourceUrl) Path() string
type ListResources ¶
type RemoveResource ¶
type RemoveResource struct { httpx.MethodDelete ResourceID types.SFID `in:"path" name:"resourceID"` }
func (*RemoveResource) Output ¶
func (r *RemoveResource) Output(ctx context.Context) (interface{}, error)
func (*RemoveResource) Path ¶
func (r *RemoveResource) Path() string
Click to show internal directories.
Click to hide internal directories.