Documentation ¶
Index ¶
- func Decorate(ctx context.Context, kv ...any) context.Context
- func FileUpload(ctx context.Context, targetUrl string, headers map[string][]string, ...) error
- func FromCtxInt(ctx context.Context, key any, defaultValue int) int
- func GET(ctx context.Context, targetUrl string, headers map[string][]string, ...) ([]byte, error)
- func GetOffsetAndLimit(r *http.Request) (offset, limit int)
- func GetVersion(ctx context.Context) string
- func IsHxRequest(r *http.Request) bool
- func PagerIndexes(pageIndex, pageCount int) []int64
- func SanitizeParams(params url.Values, keys ...string)
- func UrlParamOrDefault(r *http.Request, param, defaultValue string) string
- func WithVersion(ctx context.Context, version string) context.Context
- func WriteComponentResponse(ctx context.Context, w http.ResponseWriter, r *http.Request, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileUpload ¶
func GetOffsetAndLimit ¶
func GetVersion ¶
func IsHxRequest ¶
func PagerIndexes ¶
func SanitizeParams ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.