mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 06:31:59 +08:00

* feat: setup for licenses v3 integration * feat: added some more logic * feat: validator changes * chore: added a couple of todos * feat: added config parameter for licenses v3 and the boot option * feat: some typo fix * feat: added refresh licenses handler * feat: handle the start manager license activation * chore: text updates * feat: added list licenses call * chore: refactor the entire code to cleanup interfaces * fix: nil pointer error * chore: some minor edits * feat: model changes * feat: model changes * fix: utilise factory pattern * feat: added default basic plan * chore: added test cases for new license function * feat: added more test cases * chore: make the licenses id not null * feat: cosmetic changes * feat: cosmetic changes * feat: update zeus URL * chore: license testing fixes * feat: added license status and category handling for query-service * chore: added v3 support in v2 endpoint * chore: http response codes and some code cleanup * chore: added detailed test cases * chore: address review comments * chore: some misc cleanup
21 lines
543 B
Go
21 lines
543 B
Go
package signozio
|
|
|
|
type status string
|
|
|
|
type ActivationResult struct {
|
|
Status status `json:"status"`
|
|
Data *ActivationResponse `json:"data,omitempty"`
|
|
ErrorType string `json:"errorType,omitempty"`
|
|
Error string `json:"error,omitempty"`
|
|
}
|
|
|
|
type ActivationResponse struct {
|
|
ActivationId string `json:"ActivationId"`
|
|
PlanDetails string `json:"PlanDetails"`
|
|
}
|
|
|
|
type ValidateLicenseResponse struct {
|
|
Status status `json:"status"`
|
|
Data map[string]interface{} `json:"data"`
|
|
}
|