types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShortDate

type ShortDate time.Time

func (ShortDate) MarshalJSON

func (d ShortDate) MarshalJSON() ([]byte, error)

func (*ShortDate) String

func (d *ShortDate) String() string

func (*ShortDate) ToTime

func (d *ShortDate) ToTime() *time.Time

func (*ShortDate) UnmarshalJSON

func (jt *ShortDate) UnmarshalJSON(b []byte) error

type SortUint64

type SortUint64 []uint64

func (SortUint64) Len

func (a SortUint64) Len() int

func (SortUint64) Less

func (a SortUint64) Less(i, j int) bool

func (SortUint64) Swap

func (a SortUint64) Swap(i, j int)

type SqlUuid

type SqlUuid uuid.UUID

SqlUuid -> type to use as binary uuid in BBDD

func NewSqlUuid

func NewSqlUuid() SqlUuid

func StringToSqlUuid

func StringToSqlUuid(s string) (SqlUuid, error)

StringToSqlUuid -> parse string to MYTYPE

func (SqlUuid) GormDataType

func (my SqlUuid) GormDataType() string

GormDataType -> sets type to binary(16)

func (SqlUuid) MarshalJSON

func (my SqlUuid) MarshalJSON() ([]byte, error)

func (*SqlUuid) New

func (my *SqlUuid) New()

New -> Creates a new SqlUuid

func (*SqlUuid) Scan

func (my *SqlUuid) Scan(value interface{}) error

Scan --> tells GORM how to receive from the database

func (SqlUuid) String

func (my SqlUuid) String() string

String -> String Representation of Binary16

func (*SqlUuid) UnmarshalJSON

func (my *SqlUuid) UnmarshalJSON(by []byte) error

func (*SqlUuid) UnmarshalYAML

func (my *SqlUuid) UnmarshalYAML(unmarshal func(interface{}) error) error

func (SqlUuid) Value

func (my SqlUuid) Value() (driver.Value, error)

Value -> tells GORM how to save into the database

type UserRole

type UserRole uint8
const (
	ApiUser UserRole = iota + 1
	AppUser
	Manager
	Console

	Admin
)

Jump to

Keyboard shortcuts

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