types

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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 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 any, val T) bool)

func (*LMap[T]) Get

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

func (*LMap[T]) Has

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

func (*LMap[T]) Keys

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

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 any, val T) *LMap[T]

func (*LMap[T]) Remove

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

func (*LMap[T]) Set

func (m *LMap[T]) Set(k any, 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)

Jump to

Keyboard shortcuts

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