Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyDataService ¶
func DestroyDataService(ds *DataService) error
Types ¶
type Config ¶
type Config struct { Token string `json:"token" yaml:"token"` Address string `json:"address" yaml:"address"` HttpPort string `json:"http_port" yaml:"http_port"` GrpcPort string `json:"grpc_port" yaml:"grpc_port"` Namespace string `json:"namespace" yaml:"namespace"` DataSource string `json:"data_source" yaml:"data_source"` TimeoutSec int64 `json:"timeout_sec" yaml:"timeout_sec"` }
type DataService ¶
type DataService struct {
// contains filtered or unexported fields
}
func NewDataService ¶
func NewDataService(config *Config) (*DataService, error)
func (*DataService) ExecuteRawSql ¶
func (*DataService) ExecuteSql ¶
func (*DataService) Transaction ¶
func (ds *DataService) Transaction(txFunc TxFunc) error
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) ExecuteRawSql ¶
func (*Transaction) ExecuteSql ¶
type TxFunc ¶
type TxFunc func(tx *Transaction) error
Click to show internal directories.
Click to hide internal directories.