Documentation ¶
Index ¶
- type Connector
- type ConnectorModel
- func (d *ConnectorModel) All() ([]*Connector, error)
- func (d *ConnectorModel) DeleteBySourceId(id string) error
- func (d *ConnectorModel) Find(id int) (*Connector, error)
- func (d *ConnectorModel) FindByDb(dbname string, start, end int) ([]*Connector, error)
- func (d *ConnectorModel) FindIn(ids ...int) ([]*Connector, error)
- func (d *ConnectorModel) GetAllDb() ([]string, error)
- func (d *ConnectorModel) GetCountByDb(db string) (int64, error)
- func (d *ConnectorModel) Insert(v *Connector) (int, error)
- type Dm
- type DmModel
- func (d *DmModel) All() ([]*Dm, error)
- func (d *DmModel) Delete(id int) error
- func (d *DmModel) Find(id int) (*Dm, error)
- func (r *DmModel) FindByDb(db string, page, pageSize int) ([]*Dm, error)
- func (d *DmModel) FindIn(ids ...int) ([]*Dm, error)
- func (r *DmModel) GetAllDb() ([]*Rtu, error)
- func (r *DmModel) GetCountByDb(db string) (int64, error)
- func (d *DmModel) Insert(v *Dm) (int, error)
- type Group
- type GroupModel
- type Permission
- type PermissionModel
- type Rtu
- type RtuModel
- func (r *RtuModel) All() ([]*Rtu, error)
- func (r *RtuModel) Delete(id int) error
- func (r *RtuModel) Find(id int) (*Rtu, error)
- func (r *RtuModel) FindByDb(db string, page, pageSize int) ([]*Rtu, error)
- func (r *RtuModel) FindIn(ids ...int) ([]*Rtu, error)
- func (r *RtuModel) GetAllDb() ([]*Rtu, error)
- func (r *RtuModel) GetCountByDb(db string) (int64, error)
- func (r *RtuModel) GetExist() ([]*Rtu, error)
- func (r *RtuModel) Insert(v *Rtu) (int, error)
- func (r *RtuModel) Update(id int, status string) error
- type User
- type UserModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectorModel ¶
type ConnectorModel struct {
// contains filtered or unexported fields
}
func NewConnectorModel ¶
func NewConnectorModel(dsn string) *ConnectorModel
func (*ConnectorModel) All ¶
func (d *ConnectorModel) All() ([]*Connector, error)
func (*ConnectorModel) DeleteBySourceId ¶
func (d *ConnectorModel) DeleteBySourceId(id string) error
func (*ConnectorModel) FindByDb ¶
func (d *ConnectorModel) FindByDb(dbname string, start, end int) ([]*Connector, error)
func (*ConnectorModel) GetAllDb ¶
func (d *ConnectorModel) GetAllDb() ([]string, error)
func (*ConnectorModel) GetCountByDb ¶
func (d *ConnectorModel) GetCountByDb(db string) (int64, error)
type Dm ¶
type Dm struct { ID int `db:"id"` Name string `db:"name" length:"24" index:""` SourceType string `db:"source_type"` SourceDsn string `db:"source_dsn"` SourceDb string `db:"source_db"` SourceTable string `db:"source_table"` SourceQueryKey string `db:"source_query_key"` TargetType string `db:"target_type"` TargetShards string `db:"target_shards"` TargetDB string `db:"target_db"` TargetChProxy string `db:"target_ch_proxy"` TargetTable string `db:"target_table"` WindowStartHour int `db:"window_start_hour"` WindowEndHour int `db:"window_end_hour"` CreateTime time.Time `db:"create_time"` UpdateTime time.Time `db:"update_time"` Suffix string `db:"suffix"` }
type GroupModel ¶
type GroupModel struct {
// contains filtered or unexported fields
}
func NewGroupModel ¶
func NewGroupModel(dsn string) *GroupModel
type Permission ¶
type PermissionModel ¶
type PermissionModel struct {
// contains filtered or unexported fields
}
func NewPermissionModel ¶
func NewPermissionModel(dsn string) *PermissionModel
type Rtu ¶
type Rtu struct { ID int `db:"id"` Name string `db:"name" index:""` SourceType string `db:"source_type"` SourceDsn string `db:"source_dsn"` SourceTable string `db:"source_table"` SourceDb string `db:"source_db"` SourceQueryKey string `db:"source_query_key"` SourceTopic string `db:"source_topic"` TargetType string `db:"target_type"` TargetShards string `db:"target_shards"` TargetDB string `db:"target_db"` TargetChProxy string `db:"target_ch_proxy"` TargetTable string `db:"target_table"` CreateTime time.Time `db:"create_time"` UpdateTime time.Time `db:"update_time"` Status string `db:"status"` }
type RtuModel ¶
type RtuModel struct {
// contains filtered or unexported fields
}
func NewRtuModel ¶
type User ¶
type User struct { ID int `db:"id"` GroupID int `db:"group_id" index:""` Name string `db:"name" length:"36"` Email string `db:"email" length:"36" index:""` Password string `db:"password" length:"36"` Token string `db:"token" length:"36" index:""` CreateTime time.Time `db:"create_time"` UpdateTime time.Time `db:"update_time"` }
type UserModel ¶
type UserModel struct {
// contains filtered or unexported fields
}
func NewUserModel ¶
Click to show internal directories.
Click to hide internal directories.