Documentation ¶
Index ¶
- type HealthCheckRecord
- func (HealthCheckRecord) CountByCondition(ctx *appcontext.AppContext, condition interface{}) (int64, error)
- func (HealthCheckRecord) DeleteManyByCondition(ctx *appcontext.AppContext, condition interface{}) error
- func (HealthCheckRecord) FindOneByCondition(ctx *appcontext.AppContext, condition interface{}, ...) (doc *mongodb.HealthCheckRecord, err error)
- func (HealthCheckRecord) GetMetricsInTimeRange(ctx *appcontext.AppContext, ownerID primitive.ObjectID, code string, ...) (*MetricsInTimeRange, error)
- func (d HealthCheckRecord) GetResponseTimeChartDataInTimeRange(ctx *appcontext.AppContext, ownerID primitive.ObjectID, code string, ...) ([]ResponseTimeChartData, error)
- func (HealthCheckRecord) InsertOne(ctx *appcontext.AppContext, doc mongodb.HealthCheckRecord) error
- type MetricsInTimeRange
- type Monitor
- func (Monitor) CountByCondition(ctx *appcontext.AppContext, condition interface{}) (int64, error)
- func (Monitor) DeleteOneByCondition(ctx *appcontext.AppContext, condition interface{}) (bool, error)
- func (Monitor) FindByCondition(ctx *appcontext.AppContext, condition interface{}, ...) ([]mongodb.Monitor, error)
- func (Monitor) FindOneByCondition(ctx *appcontext.AppContext, condition interface{}, ...) (doc *mongodb.Monitor, err error)
- func (Monitor) InsertOne(ctx *appcontext.AppContext, doc mongodb.Monitor) error
- func (Monitor) UpdateOneByCondition(ctx *appcontext.AppContext, filter interface{}, data interface{}) error
- type ResponseTimeChartData
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckRecord ¶
type HealthCheckRecord struct{}
func (HealthCheckRecord) CountByCondition ¶
func (HealthCheckRecord) CountByCondition(ctx *appcontext.AppContext, condition interface{}) (int64, error)
func (HealthCheckRecord) DeleteManyByCondition ¶
func (HealthCheckRecord) DeleteManyByCondition(ctx *appcontext.AppContext, condition interface{}) error
func (HealthCheckRecord) FindOneByCondition ¶
func (HealthCheckRecord) FindOneByCondition(ctx *appcontext.AppContext, condition interface{}, opts ...*options.FindOneOptions) (doc *mongodb.HealthCheckRecord, err error)
func (HealthCheckRecord) GetMetricsInTimeRange ¶
func (HealthCheckRecord) GetMetricsInTimeRange(ctx *appcontext.AppContext, ownerID primitive.ObjectID, code string, startTime, endTime time.Time) (*MetricsInTimeRange, error)
func (HealthCheckRecord) GetResponseTimeChartDataInTimeRange ¶
func (d HealthCheckRecord) GetResponseTimeChartDataInTimeRange(ctx *appcontext.AppContext, ownerID primitive.ObjectID, code string, startTime, endTime time.Time) ([]ResponseTimeChartData, error)
func (HealthCheckRecord) InsertOne ¶
func (HealthCheckRecord) InsertOne(ctx *appcontext.AppContext, doc mongodb.HealthCheckRecord) error
type MetricsInTimeRange ¶
type Monitor ¶
type Monitor struct{}
func (Monitor) CountByCondition ¶
func (Monitor) CountByCondition(ctx *appcontext.AppContext, condition interface{}) (int64, error)
func (Monitor) DeleteOneByCondition ¶
func (Monitor) DeleteOneByCondition(ctx *appcontext.AppContext, condition interface{}) (bool, error)
func (Monitor) FindByCondition ¶
func (Monitor) FindByCondition(ctx *appcontext.AppContext, condition interface{}, opts ...*options.FindOptions) ([]mongodb.Monitor, error)
func (Monitor) FindOneByCondition ¶
func (Monitor) FindOneByCondition(ctx *appcontext.AppContext, condition interface{}, opts ...*options.FindOneOptions) (doc *mongodb.Monitor, err error)
func (Monitor) InsertOne ¶
func (Monitor) InsertOne(ctx *appcontext.AppContext, doc mongodb.Monitor) error
func (Monitor) UpdateOneByCondition ¶
func (Monitor) UpdateOneByCondition(ctx *appcontext.AppContext, filter interface{}, data interface{}) error
type ResponseTimeChartData ¶
type User ¶
type User struct{}
func (User) FindOneByCondition ¶
func (User) FindOneByCondition(ctx *appcontext.AppContext, condition interface{}, opts ...*options.FindOneOptions) (doc *mongodb.User, err error)
func (User) InsertOne ¶
func (User) InsertOne(ctx *appcontext.AppContext, doc mongodb.User) error
Click to show internal directories.
Click to hide internal directories.