Documentation ¶
Index ¶
- Constants
- func GenCert() gin.HandlerFunc
- func GenCertByCsr() gin.HandlerFunc
- func GenCrl() gin.HandlerFunc
- func GenCsr() gin.HandlerFunc
- func GetCertNodeId() gin.HandlerFunc
- func InputErrorJSONResp(err string, c *gin.Context)
- func InputMissingJSONResp(err string, c *gin.Context)
- func JWTAuthMiddleware() gin.HandlerFunc
- func Login() gin.HandlerFunc
- func QueryCerts() gin.HandlerFunc
- func RenewCert() gin.HandlerFunc
- func RevokeCert() gin.HandlerFunc
- func ServerErrorJSONResp(err string, c *gin.Context)
- func SuccessfulJSONResp(data interface{}, c *gin.Context)
- type GenCertByCsrReq
- type GenCertReq
- type GenCrlReq
- type GenCsrReq
- type GetNodeIdReq
- type LoginReq
- type LoginResp
- type QueryCertReq
- type RenewCertReq
- type RevokeCertReq
- type StandardResp
- type TokenReq
Constants ¶
View Source
const ( //SUCCESS_PESP_CODE The code returned on successful request SUCCESS_PESP_CODE = 200 //INPUT_MISSING_PESP_CODE The code returned if the required parameters are missing INPUT_MISSING_PESP_CODE = 202 //INPUT_ERROR_RESP_CODE The code returned when an error is inputted INPUT_ERROR_RESP_CODE = 204 //SERVER_ERROR_RESP_CODE The code returned by the server when an error occurred SERVER_ERROR_RESP_CODE = 500 )
View Source
const ( //INPUT_MISSING_MSG The msg returned if the required parameters are missing INPUT_MISSING_MSG = "Missing required parameters" //INPUT_ERROR_MSG The msg returned when an error is inputted INPUT_ERROR_MSG = "There is an error in the input parameter" //SERVER_ERROR_MSG The msg returned by the server when an error occurred SERVER_ERROR_MSG = "An error occurred with the internal service" //SUCCESS_MSG The msg returned on successful request SUCCESS_MSG = "The request service returned successfully" )
Variables ¶
This section is empty.
Functions ¶
func InputMissingJSONResp ¶
Input empty response
func Login ¶
func Login() gin.HandlerFunc
func ServerErrorJSONResp ¶
Service error response
Types ¶
type GenCertByCsrReq ¶
type GenCertReq ¶
type GenCertReq struct { OrgId string `json:"orgId"` UserId string `json:"userId"` UserType string `json:"userType"` CertUsage string `json:"certUsage"` PrivateKeyPwd string `json:"privateKeyPwd"` Country string `json:"country"` Locality string `json:"locality"` Province string `json:"province"` Token string `json:"token"` }
type GenCrlReq ¶
type GenCsrReq ¶
type GetNodeIdReq ¶
type LoginReq ¶
type LoginResp ¶
type QueryCertReq ¶
type RenewCertReq ¶
type RevokeCertReq ¶
type StandardResp ¶
Click to show internal directories.
Click to hide internal directories.