types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Path     string
	Message  string
	Error    error
	Type     string
	IsIgnore bool
	Params   string
}

Error represents customized error object

type IntArray

type IntArray []int

IntArray is an ADT to overcome the generic repo problem with pq.StringArray Value

func (*IntArray) Scan

func (a *IntArray) Scan(src interface{}) error

Scan override scan's function for IntArray (ADT) type

func (IntArray) Value

func (a IntArray) Value() (driver.Value, error)

Value override value's function for IntArray (ADT) type

type Metadata

type Metadata map[string]interface{}

Metadata is an ADT to overcome the generic repo problem with JSONB Value

func (*Metadata) Scan

func (p *Metadata) Scan(src interface{}) error

Scan override scan's function for metadata (ADT) type

func (Metadata) Value

func (p Metadata) Value() (driver.Value, error)

Value override value's function for metadata (ADT) type

type Response

type Response struct {
	Data interface{} `json:"data"`
	Code int         `json:"code"`
	Info string      `json:"info"`
}

Response encapsulate all response

type StringArray

type StringArray []string

StringArray is an ADT to overcome the generic repo problem with pq.StringArray Value

func (*StringArray) Scan

func (s *StringArray) Scan(src interface{}) error

Scan override scan's function for StringArray (ADT) type

func (StringArray) Value

func (s StringArray) Value() (driver.Value, error)

Value override value's function for StringArray (ADT) type

Jump to

Keyboard shortcuts

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