Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( // ErrCouldNotMarshalFLM is to be used when marshalling failed. ErrCouldNotMarshalFLM = errors.New("could not marshal FileLoadingMode value to string") // ErrCouldNotUnmarshalFLM is to be used when unmarshalling failed. ErrCouldNotUnmarshalFLM = errors.New("could not unmarshal FileLoadingMode value from string") )
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration is a wrapper over an actual duration so we can represent them as string in the toml configuration.
func (Duration) MarshalFlag ¶
func (Duration) MarshalText ¶
MarshalText marshal a duraton into bytes.
func (*Duration) UnmarshalFlag ¶
func (*Duration) UnmarshalText ¶
UnmarshalText unmarshal a duration from bytes.
type FileLoadingMode ¶
type FileLoadingMode struct {
	options.FileLoadingMode
}
    FileLoadingMode is for storing a badger.FileLoadingMode as a string in a config file.
func (*FileLoadingMode) Get ¶
func (m *FileLoadingMode) Get() options.FileLoadingMode
Get returns the underlying FileLoadingMode.
func (FileLoadingMode) MarshalText ¶
func (m FileLoadingMode) MarshalText() ([]byte, error)
MarshalText maps a FileLoadingMode enum value to a string.
func (*FileLoadingMode) UnmarshalText ¶
func (m *FileLoadingMode) UnmarshalText(text []byte) error
UnmarshalText maps a string to a FileLoadingMode enum value.
type LogLevel ¶
LogLevel is wrapper over the actual log level so they can be specified as strings in the toml configuration.
func (LogLevel) MarshalText ¶
MarshalText marshal a loglevel into bytes.
func (*LogLevel) UnmarshalFlag ¶
func (*LogLevel) UnmarshalText ¶
UnmarshalText unmarshal a loglevel from bytes.
 Click to show internal directories. 
   Click to hide internal directories.