Documentation
¶
Index ¶
Constants ¶
View Source
const (
APIUsers = "/user"
)
API Constants
Variables ¶
This section is empty.
Functions ¶
func RequestServer ¶
func RequestServer(ctx context.Context, requestParams RequestServerType) (string, error)
RequestServer is auth request to CRDA server
Types ¶
type Payload ¶
type Payload struct {
utils.GenericPayload
SnykToken string `json:"snyk_api_token,omitempty"`
UUID string `json:"user_id,omitempty"`
}
Payload is format for auth requests to Server
type RequestServerType ¶
type RequestServerType struct {
SynkToken string
UserID string
Host string
ThreeScaleToken string
Client string
}
RequestServerType is a argtype of RequestServer func
type UserResponse ¶
type UserResponse struct {
UUID string `json:"user_id,omitempty"`
Message string `json:"message,omitempty"`
Status int32 `json:"status,omitempty"`
}
UserResponse is format for Response from Server
Click to show internal directories.
Click to hide internal directories.