Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeNone = Type(0) TypeUser = Type(1) TypeFirstCustom = Type(100) )
Variables ¶
This section is empty.
Functions ¶
func RegisterType ¶
Types ¶
type Keys ¶
type Keys [][]byte
func (Keys) MatchString ¶ added in v0.2.0
func (*Keys) UnmarshalJSON ¶ added in v0.2.0
type MigrationID ¶ added in v0.2.1
type MigrationRecord ¶ added in v0.2.1
type NamedKeySet ¶
func (*NamedKeySet) ActiveKey ¶
func (ks *NamedKeySet) ActiveKey() []byte
type StoreAffinity ¶
type StoreAffinity int
const ( UnknownAffinity StoreAffinity = 0 SafeReader StoreAffinity = 1 SafeWriter StoreAffinity = 2 ExclusiveWriter StoreAffinity = 3 Manual StoreAffinity = 4 DBUnused StoreAffinity = 5 )
func ParseStoreAffinity ¶
func ParseStoreAffinity(s string) (StoreAffinity, error)
func (StoreAffinity) IsReader ¶ added in v0.3.20
func (v StoreAffinity) IsReader() bool
func (StoreAffinity) IsWriter ¶
func (v StoreAffinity) IsWriter() bool
func (StoreAffinity) MarshalText ¶
func (v StoreAffinity) MarshalText() ([]byte, error)
func (StoreAffinity) String ¶
func (v StoreAffinity) String() string
func (*StoreAffinity) UnmarshalText ¶
func (v *StoreAffinity) UnmarshalText(b []byte) error
func (StoreAffinity) WantsAutomaticTx ¶ added in v0.2.2
func (v StoreAffinity) WantsAutomaticTx() bool
Click to show internal directories.
Click to hide internal directories.