types

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpCodeResult

type HttpCodeResult struct {
	// contains filtered or unexported fields
}

func (*HttpCodeResult) Body

func (r *HttpCodeResult) Body() error

func (*HttpCodeResult) SetContext

func (r *HttpCodeResult) SetContext(ctx *fiber.Ctx)

func (*HttpCodeResult) SetValue

func (r *HttpCodeResult) SetValue(value any)

type IApiResult

type IApiResult interface {
	Body() error
	SetContext(ctx *fiber.Ctx)
	SetValue(value any)
}

type JsonResult

type JsonResult struct {
	// contains filtered or unexported fields
}

func (*JsonResult) Body

func (r *JsonResult) Body() error

func (*JsonResult) SetContext

func (r *JsonResult) SetContext(ctx *fiber.Ctx)

func (*JsonResult) SetValue

func (r *JsonResult) SetValue(value any)

type JsonpResult

type JsonpResult struct {
	// contains filtered or unexported fields
}

func (*JsonpResult) Body

func (r *JsonpResult) Body() error

func (*JsonpResult) SetContext

func (r *JsonpResult) SetContext(ctx *fiber.Ctx)

func (*JsonpResult) SetValue

func (r *JsonpResult) SetValue(value any)

type Map added in v1.1.9

type Map[T any] struct {
	// contains filtered or unexported fields
}

Map 自定义有序Map类型

func (*Map[T]) Clear added in v1.1.9

func (m *Map[T]) Clear()

func (*Map[T]) Each added in v1.1.9

func (m *Map[T]) Each(f func(key string, val T) bool)

func (*Map[T]) Get added in v1.1.9

func (m *Map[T]) Get(index int) *T

func (*Map[T]) Has added in v1.1.9

func (m *Map[T]) Has(key string) bool

func (*Map[T]) Keys added in v1.1.9

func (m *Map[T]) Keys() []string

func (*Map[T]) Len added in v1.1.9

func (m *Map[T]) Len() int

func (*Map[T]) MarshalJSON added in v1.2.0

func (m *Map[T]) MarshalJSON() ([]byte, error)

func (*Map[T]) Put added in v1.1.9

func (m *Map[T]) Put(key string, val any) *Map[T]

func (*Map[T]) Remove added in v1.1.9

func (m *Map[T]) Remove(key string)

func (*Map[T]) Set added in v1.2.1

func (m *Map[T]) Set(k string, v T) bool

func (*Map[T]) String added in v1.2.1

func (m *Map[T]) String() string

func (*Map[T]) UnmarshalJSON added in v1.1.9

func (m *Map[T]) UnmarshalJSON(value []byte) error

func (*Map[T]) Values added in v1.1.9

func (m *Map[T]) Values() []T

type NullResult

type NullResult struct {
	// contains filtered or unexported fields
}

func (*NullResult) Body

func (r *NullResult) Body() error

func (*NullResult) SetContext

func (r *NullResult) SetContext(ctx *fiber.Ctx)

func (*NullResult) SetValue

func (r *NullResult) SetValue(value any)

type RedirectResult

type RedirectResult struct {
	// contains filtered or unexported fields
}

func (*RedirectResult) Body

func (r *RedirectResult) Body() error

func (*RedirectResult) SetContext

func (r *RedirectResult) SetContext(ctx *fiber.Ctx)

func (*RedirectResult) SetValue

func (r *RedirectResult) SetValue(value any)

type StringResult

type StringResult struct {
	// contains filtered or unexported fields
}

func (*StringResult) Body

func (r *StringResult) Body() error

func (*StringResult) SetContext

func (r *StringResult) SetContext(ctx *fiber.Ctx)

func (*StringResult) SetValue

func (r *StringResult) SetValue(value any)

type ViewResult

type ViewResult struct {
	ViewName string
	// contains filtered or unexported fields
}

func (*ViewResult) Body

func (r *ViewResult) Body() error

func (*ViewResult) SetContext

func (r *ViewResult) SetContext(ctx *fiber.Ctx)

func (*ViewResult) SetValue

func (r *ViewResult) SetValue(value any)

type XmlResult

type XmlResult struct {
	// contains filtered or unexported fields
}

func (*XmlResult) Body

func (r *XmlResult) Body() error

func (*XmlResult) SetContext

func (r *XmlResult) SetContext(ctx *fiber.Ctx)

func (*XmlResult) SetValue

func (r *XmlResult) SetValue(value any)

Jump to

Keyboard shortcuts

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