resource

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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 ListResources struct {
	httpx.MethodGet
	resource.ListReq
}

func (*ListResources) Output

func (r *ListResources) Output(ctx context.Context) (interface{}, error)

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

Jump to

Keyboard shortcuts

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