Documentation ¶
Index ¶
- func StaticValue[Model any](v any) func(oldField *Field[Model])
- type ErrorFieldIsNotPresentInPayload
- type Field
- func (s *Field[Model]) Name() string
- func (s *Field[Model]) ReadOnly() *Field[Model]
- func (s *Field[Model]) ReadWrite() *Field[Model]
- func (s *Field[Model]) ToInternalValue(reprModel map[string]any, ctx *gin.Context) (any, error)
- func (s *Field[Model]) ToRepresentation(intVal models.InternalValue, ctx *gin.Context) (any, error)
- func (s *Field[Model]) WithInternalValueFunc(f InternalValueFunc) *Field[Model]
- func (s *Field[Model]) WithRepresentationFunc(f RepresentationFunc) *Field[Model]
- func (s *Field[Model]) WriteOnly() *Field[Model]
- type GRFParsable
- type GRFRepresentable
- type InternalValueFunc
- type RepresentationFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StaticValue ¶
Types ¶
type ErrorFieldIsNotPresentInPayload ¶
type ErrorFieldIsNotPresentInPayload struct {
// contains filtered or unexported fields
}
func NewErrorFieldIsNotPresentInPayload ¶
func NewErrorFieldIsNotPresentInPayload(name string) ErrorFieldIsNotPresentInPayload
func (ErrorFieldIsNotPresentInPayload) Error ¶
func (e ErrorFieldIsNotPresentInPayload) Error() string
type Field ¶
type Field[Model any] struct { Readable bool Writable bool // contains filtered or unexported fields }
func (*Field[Model]) ToInternalValue ¶
func (*Field[Model]) ToRepresentation ¶
func (*Field[Model]) WithInternalValueFunc ¶
func (s *Field[Model]) WithInternalValueFunc(f InternalValueFunc) *Field[Model]
func (*Field[Model]) WithRepresentationFunc ¶
func (s *Field[Model]) WithRepresentationFunc(f RepresentationFunc) *Field[Model]
type GRFParsable ¶
type GRFRepresentable ¶
type InternalValueFunc ¶
type RepresentationFunc ¶
Click to show internal directories.
Click to hide internal directories.