Documentation ¶
Index ¶
- type RoundingTimeOption
- func (c RoundingTimeOption) Code() string
- func (c RoundingTimeOption) MarshalJSON() ([]byte, error)
- func (c RoundingTimeOption) Name() string
- func (c RoundingTimeOption) RoundTime(t time.Time) time.Time
- func (c *RoundingTimeOption) Scan(val interface{}) error
- func (c *RoundingTimeOption) UnmarshalJSON(val []byte) error
- func (c *RoundingTimeOption) UnmarshalParam(src string) error
- func (c RoundingTimeOption) Value() (driver.Value, error)
- type RoundingTimeOptionClass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundingTimeOption ¶
type RoundingTimeOption int
RoundingTimeOption .
const ( // NoRounding . NoRounding RoundingTimeOption = iota + 1 // MinuteCeil . MinuteCeil // MinuteRound . MinuteRound // MinuteFloor . MinuteFloor // HourCeil . HourCeil // HourRound . HourRound // HourFloor . HourFloor // Default . Default = NoRounding )
func (RoundingTimeOption) MarshalJSON ¶
func (c RoundingTimeOption) MarshalJSON() ([]byte, error)
MarshalJSON presents value to the client
func (*RoundingTimeOption) Scan ¶
func (c *RoundingTimeOption) Scan(val interface{}) error
Scan retrieves value from the DB
func (*RoundingTimeOption) UnmarshalJSON ¶
func (c *RoundingTimeOption) UnmarshalJSON(val []byte) error
UnmarshalJSON parses value from the client
func (*RoundingTimeOption) UnmarshalParam ¶
func (c *RoundingTimeOption) UnmarshalParam(src string) error
UnmarshalParam parses value from the client (handled by gorm)
type RoundingTimeOptionClass ¶
RoundingTimeOptionClass .
Click to show internal directories.
Click to hide internal directories.