Documentation ¶
Index ¶
- func Transact(db *DB, txFunc func(*DBTrans) error) error
- type DB
- func (db *DB) AddDestination(destination *datafeed.AddDestinationRequest) (int64, error)
- func (db *DB) DeleteDestination(delete *datafeed.DeleteDestinationRequest) error
- func (db *DB) EnableDestination(ctx context.Context, destination *datafeed.UpdateDestinationEnableRequest) error
- func (db *DB) GetDestination(get *datafeed.GetDestinationRequest) (*datafeed.GetDestinationResponse, error)
- func (db *DB) ListDBDestinations() ([]Destination, error)
- func (db *DB) ListDestinations() (*datafeed.ListDestinationResponse, error)
- func (db *DB) UpdateDestination(destination *datafeed.UpdateDestinationRequest) error
- type DBTrans
- type Destination
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
func (*DB) AddDestination ¶
func (db *DB) AddDestination(destination *datafeed.AddDestinationRequest) (int64, error)
func (*DB) DeleteDestination ¶
func (db *DB) DeleteDestination(delete *datafeed.DeleteDestinationRequest) error
func (*DB) EnableDestination ¶
func (*DB) GetDestination ¶
func (db *DB) GetDestination(get *datafeed.GetDestinationRequest) (*datafeed.GetDestinationResponse, error)
func (*DB) ListDBDestinations ¶
func (db *DB) ListDBDestinations() ([]Destination, error)
func (*DB) ListDestinations ¶
func (db *DB) ListDestinations() (*datafeed.ListDestinationResponse, error)
func (*DB) UpdateDestination ¶
func (db *DB) UpdateDestination(destination *datafeed.UpdateDestinationRequest) error
type DBTrans ¶
type DBTrans struct {
*gorp.Transaction
}
Click to show internal directories.
Click to hide internal directories.