Documentation ¶
Index ¶
- Variables
- func Bind[T kvalid.RuleHolder[T]](ctx *gin.Context, method string, old T) error
- func LockBind[T kvalid.RuleHolder[T]](ctx *gin.Context, method string, old T) error
- func NewBadRequestError(err error) error
- func NewPoint[T any](src T) (T, bool)
- type BadRequestError
- type BytesMarshaler
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOptimisticLock = errors.New("optimistic lock")
Functions ¶
func NewBadRequestError ¶ added in v1.0.7
Types ¶
type BadRequestError ¶ added in v1.0.7
type BadRequestError string
func (BadRequestError) Error ¶ added in v1.0.7
func (p BadRequestError) Error() string
func (BadRequestError) String ¶ added in v1.0.8
func (p BadRequestError) String() string
type BytesMarshaler ¶ added in v1.0.11
type BytesMarshaler []byte
func NewBytesMarshaler ¶ added in v1.0.11
func NewBytesMarshaler(marshaler json.Marshaler) BytesMarshaler
func (BytesMarshaler) MarshalJSON ¶ added in v1.0.11
func (p BytesMarshaler) MarshalJSON() ([]byte, error)
type Service ¶ added in v1.0.10
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶ added in v1.0.10
func NewService() *Service
func (*Service) Add ¶ added in v1.0.10
func (p *Service) Add(jsoners ...kvalid.ValidJSONer)
func (*Service) Router ¶ added in v1.0.10
func (p *Service) Router(group *gin.RouterGroup)
Click to show internal directories.
Click to hide internal directories.