mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-27 19:32:00 +08:00

* feat(zeus): add zeus package * feat(signoz): add DI for zeus * feat(zeus): integrate with the codebase * ci(make): change makefile * ci: change workflows to point to the new zeus url * Update ee/query-service/usage/manager.go Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * Update ee/query-service/license/manager.go Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * fix: fix nil retriable * fix: fix zeus DI * fix: fix path of ldflag * feat(zeus): added zeus integration tests * feat(zeus): added zeus integration tests * feat(zeus): format the pytest --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> Co-authored-by: vikrantgupta25 <vikrant.thomso@gmail.com> Co-authored-by: Vikrant Gupta <vikrant@signoz.io>
36 lines
980 B
Go
36 lines
980 B
Go
package zeus
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/SigNoz/signoz/pkg/errors"
|
|
)
|
|
|
|
var (
|
|
ErrCodeUnsupported = errors.MustNewCode("zeus_unsupported")
|
|
ErrCodeResponseMalformed = errors.MustNewCode("zeus_response_malformed")
|
|
)
|
|
|
|
type Zeus interface {
|
|
// Returns the license for the given key.
|
|
GetLicense(context.Context, string) ([]byte, error)
|
|
|
|
// Returns the checkout URL for the given license key.
|
|
GetCheckoutURL(context.Context, string, []byte) ([]byte, error)
|
|
|
|
// Returns the portal URL for the given license key.
|
|
GetPortalURL(context.Context, string, []byte) ([]byte, error)
|
|
|
|
// Returns the deployment for the given license key.
|
|
GetDeployment(context.Context, string) ([]byte, error)
|
|
|
|
// Puts the meters for the given license key.
|
|
PutMeters(context.Context, string, []byte) error
|
|
|
|
// Put profile for the given license key.
|
|
PutProfile(context.Context, string, []byte) error
|
|
|
|
// Put host for the given license key.
|
|
PutHost(context.Context, string, []byte) error
|
|
}
|