Documentation ¶
Index ¶
- Variables
- func IntArrayScan(src interface{}, dst IntArrayScanner) error
- func IntArrayValue(s IntArrayValuer) (driver.Value, error)
- func NullTimeEqual(left, right sql.NullTime) bool
- func NullTimeFromUnixJSON(jt *nsjson.UnixTime) sql.NullTime
- func NullTimeProto(t sql.NullTime) (*pbts.Timestamp, error)
- func NullTimeUnix(sec int64) sql.NullTime
- type AbilityIDs
- type AccountIDs
- type Base64Bytes
- type HeroRoles
- type IntArrayScanner
- type IntArrayValuer
- type ItemIDs
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidBase64BytesValue = errors.New("Invalid value for Base64Bytes")
)
Functions ¶
func IntArrayScan ¶
func IntArrayScan(src interface{}, dst IntArrayScanner) error
func IntArrayValue ¶
func IntArrayValue(s IntArrayValuer) (driver.Value, error)
func NullTimeEqual ¶
func NullTimeProto ¶
NullTimeProto converts a NullTime into a protobuf Timestamp.
Returns nil with nil error if the given NullTime is invalid.
func NullTimeUnix ¶
Types ¶
type AbilityIDs ¶
func NewAbilityIDs ¶
func NewAbilityIDs(ids []uint32) AbilityIDs
func (*AbilityIDs) Scan ¶
func (s *AbilityIDs) Scan(src interface{}) error
Scan implements the sql.Scanner interface.
func (*AbilityIDs) SetInt64s ¶
func (s *AbilityIDs) SetInt64s(arr []int64)
func (AbilityIDs) ToInt64s ¶
func (s AbilityIDs) ToInt64s() []int64
type AccountIDs ¶
func NewAccountIDs ¶
func NewAccountIDs(ids []uint32) AccountIDs
func (*AccountIDs) Scan ¶
func (s *AccountIDs) Scan(src interface{}) error
Scan implements the sql.Scanner interface.
func (*AccountIDs) SetInt64s ¶
func (s *AccountIDs) SetInt64s(arr []int64)
func (AccountIDs) ToInt64s ¶
func (s AccountIDs) ToInt64s() []int64
type Base64Bytes ¶
type Base64Bytes []byte
func (*Base64Bytes) Scan ¶
func (b *Base64Bytes) Scan(v interface{}) error
type IntArrayScanner ¶
type IntArrayScanner interface {
SetInt64s([]int64)
}
type IntArrayValuer ¶
type IntArrayValuer interface {
ToInt64s() []int64
}
Click to show internal directories.
Click to hide internal directories.