Documentation ¶
Index ¶
- Constants
- Variables
- func EncodeString(s string) string
- func Exists(file string) bool
- func GetEnv() string
- func ReadFile(file string, obj interface{}) ([]byte, error)
- func ReadFileLines(file string) ([]string, error)
- func WriteFile(file string, obj interface{}) error
- type AppConfig
- type DbrSync
- type DbrSyncConfig
- type DbrSyncOption
- type Details
- type Operation
- type OperationList
- type RabbitmqConfig
Constants ¶
View Source
const ( ModeDetails mode = "details" ModeQuery mode = "query" )
Variables ¶
View Source
var ( ErrorNotFound = errors.New(errors.LevelError, int(web.StatusNotFound), "user not found") ErrorInvalidType = errors.New(errors.LevelError, int(web.StatusNotFound), "invalid type") )
Functions ¶
func EncodeString ¶
func ReadFileLines ¶
Types ¶
type DbrSync ¶
type DbrSync struct {
// contains filtered or unexported fields
}
func (*DbrSync) Reconfigure ¶
func (dbrSync *DbrSync) Reconfigure(options ...DbrSyncOption)
Reconfigure ...
type DbrSyncConfig ¶
type DbrSyncConfig struct { Rabbitmq RabbitmqConfig `json:"rabbitmq"` Dbr *dbr.DbrConfig `json:"dbr"` Migration *migration.MigrationConfig `json:"migration"` Mode mode `json:"mode"` Log struct { Level string `json:"level"` } `json:"log"` }
ProfileConfig ...
type DbrSyncOption ¶
type DbrSyncOption func(dbrSync *DbrSync)
DbrSyncOption ...
func WithConfiguration ¶
func WithConfiguration(config *DbrSyncConfig) DbrSyncOption
WithConfiguration ...
type Operation ¶
type Operation struct { Operation dbr.SqlOperation `json:"operation"` Query *string `json:"query"` Details *Details `json:"details"` }
type OperationList ¶
type OperationList []*Operation
type RabbitmqConfig ¶
type RabbitmqConfig struct { *manager.RabbitmqConfig Queue string `json:"queue"` Binding string `json:"binding"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.