strategy

package
v1.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root = kit.NewRouter(httptransport.Group("/strategy"))

Functions

This section is empty.

Types

type BatchRemoveStrategy added in v1.1.0

type BatchRemoveStrategy struct {
	httpx.MethodDelete
	strategy.CondArgs
}

func (*BatchRemoveStrategy) Output added in v1.1.0

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

type CreateStrategy

type CreateStrategy struct {
	httpx.MethodPost
	strategy.CreateReq `in:"body"`
}

func (*CreateStrategy) Output

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

type GetStrategy

type GetStrategy struct {
	httpx.MethodGet
	StrategyID types.SFID `in:"path" name:"strategyID"`
}

func (*GetStrategy) Output

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

func (*GetStrategy) Path

func (r *GetStrategy) Path() string

type ListStrategy

type ListStrategy struct {
	httpx.MethodGet
	strategy.ListReq
}

func (*ListStrategy) Output

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

func (*ListStrategy) Path

func (r *ListStrategy) Path() string

type ListStrategyDetail added in v1.1.0

type ListStrategyDetail struct {
	httpx.MethodGet
	strategy.ListReq
}

func (*ListStrategyDetail) Output added in v1.1.0

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

func (*ListStrategyDetail) Path added in v1.1.0

func (r *ListStrategyDetail) Path() string

type RemoveStrategy

type RemoveStrategy struct {
	httpx.MethodDelete
	StrategyID types.SFID `in:"path" name:"strategyID"`
}

func (*RemoveStrategy) Output

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

func (*RemoveStrategy) Path

func (r *RemoveStrategy) Path() string

type UpdateStrategy

type UpdateStrategy struct {
	httpx.MethodPut
	StrategyID         types.SFID `in:"path" name:"strategyID"`
	strategy.UpdateReq `in:"body"`
}

func (*UpdateStrategy) Output

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

func (*UpdateStrategy) Path

func (r *UpdateStrategy) Path() string

Jump to

Keyboard shortcuts

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