Documentation ¶
Index ¶
- Variables
- func LoadCertificate(raw []byte) (tls.Certificate, error)
- func SendError(c *fiber.Ctx, err string, code int64, statusCode int) error
- func SendErrorWithRedirect(c *fiber.Ctx, message string, redirect string, code int64, statusCode int) error
- func SendErrors(c *fiber.Ctx, err error, code int64, statusCode int) error
- func SendPBSuccess(c *fiber.Ctx, obj interface{}, code int64) error
- func SendSuccess(c *fiber.Ctx, obj interface{}, code int64) error
- type AjaxResponse
- type BaseResponse
- type ListData
- type PBResponse
- func (*PBResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PBResponse) GetCode() int64
- func (x *PBResponse) GetMessage() string
- func (x *PBResponse) GetPayload() []byte
- func (x *PBResponse) GetRequestId() int64
- func (x *PBResponse) GetSuccess() bool
- func (*PBResponse) ProtoMessage()
- func (x *PBResponse) ProtoReflect() protoreflect.Message
- func (x *PBResponse) Reset()
- func (x *PBResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_httpx_proto protoreflect.FileDescriptor
Functions ¶
func LoadCertificate ¶
func LoadCertificate(raw []byte) (tls.Certificate, error)
func SendErrorWithRedirect ¶
func SendPBSuccess ¶
func SendSuccess ¶
Types ¶
type AjaxResponse ¶
type AjaxResponse struct { Success bool `json:"success"` Message string `json:"message"` Payload interface{} `json:"payload"` RequestID string `json:"request_id"` Code int64 `json:"code"` Redirect string `json:"redirect,omitempty"` }
func (*AjaxResponse) GetCode ¶
func (a *AjaxResponse) GetCode() int64
func (*AjaxResponse) GetMessage ¶
func (a *AjaxResponse) GetMessage() string
func (*AjaxResponse) GetPayload ¶
func (a *AjaxResponse) GetPayload() interface{}
func (*AjaxResponse) GetRequestId ¶
func (a *AjaxResponse) GetRequestId() string
func (*AjaxResponse) IsSuccess ¶
func (a *AjaxResponse) IsSuccess() bool
type BaseResponse ¶
type PBResponse ¶
type PBResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` RequestId int64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Success bool `protobuf:"varint,4,opt,name=success,proto3" json:"success,omitempty"` Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*PBResponse) Descriptor
deprecated
func (*PBResponse) Descriptor() ([]byte, []int)
Deprecated: Use PBResponse.ProtoReflect.Descriptor instead.
func (*PBResponse) GetCode ¶
func (x *PBResponse) GetCode() int64
func (*PBResponse) GetMessage ¶
func (x *PBResponse) GetMessage() string
func (*PBResponse) GetPayload ¶
func (x *PBResponse) GetPayload() []byte
func (*PBResponse) GetRequestId ¶
func (x *PBResponse) GetRequestId() int64
func (*PBResponse) GetSuccess ¶
func (x *PBResponse) GetSuccess() bool
func (*PBResponse) ProtoMessage ¶
func (*PBResponse) ProtoMessage()
func (*PBResponse) ProtoReflect ¶
func (x *PBResponse) ProtoReflect() protoreflect.Message
func (*PBResponse) Reset ¶
func (x *PBResponse) Reset()
func (*PBResponse) String ¶
func (x *PBResponse) String() string
Click to show internal directories.
Click to hide internal directories.