types

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: GPL-2.0 Imports: 4 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 JsonMap added in v2.0.7

type JsonMap struct {
	LMap[any]
}

JsonMap 自定义有序Map类型

func (*JsonMap) MarshalJSON added in v2.0.7

func (m *JsonMap) MarshalJSON() ([]byte, error)

func (*JsonMap) UnmarshalJSON added in v2.0.7

func (m *JsonMap) UnmarshalJSON(value []byte) error

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 LMap

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

LMap 自定义有序Map类型

func (*LMap[T]) Clear

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

func (*LMap[T]) Each

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

func (*LMap[T]) Get

func (m *LMap[T]) Get(index int) (rt T)

func (*LMap[T]) Has

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

func (*LMap[T]) Keys

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

func (*LMap[T]) Len

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

func (*LMap[T]) MarshalJSON

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

func (*LMap[T]) Put

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

func (*LMap[T]) Remove

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

func (*LMap[T]) Set

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

func (*LMap[T]) String

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

func (*LMap[T]) UnmarshalJSON

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

func (*LMap[T]) Values

func (m *LMap[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)

Source Files

  • api_result.go
  • json.go
  • map.go

Jump to

Keyboard shortcuts

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