Skip to content

Question about GSOC pwctl CLI project #390

@qazxcdswe123

Description

@qazxcdswe123

Hi, I'm interested in the GSOC pwctl CLI project, and I have some questions here

  1. Is the CLI targeting pgwatch3 (or pgwatch2)?
  2. It seems that only API below are implemented, if the CLI is going to interact with pgwatch via REST API, does that mean these are all functionalities I need to implement?
type apiHandler interface {
	GetDatabases() (string, error)
	AddDatabase(params []byte) error
	DeleteDatabase(id string) error
	UpdateDatabase(id string, params []byte) error
	GetMetrics() (res string, err error)
	AddMetric(params []byte) error
	DeleteMetric(id int) error
	UpdateMetric(id int, params []byte) error
	GetPresets() (res string, err error)
	AddPreset(params []byte) error
	DeletePreset(name string) error
	UpdatePreset(id string, params []byte) error
	GetStats() string
	TryConnectToDB(params []byte) error
}

Thanks

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions