You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-grpc_basic/pkg/v1/utils/constants/constants.go

43 lines
743 B
Go

package constants
const (
EnvProduction = "production"
)
const (
SuccessCode = `0000`
SuccesDesc = `SUCCESS`
)
const (
Table_Custom_Main = "custom.main"
)
const (
MethodGET = "GET"
MethodPOST = "POST"
MethodPUT = "PUT"
MethodDELETE = "DELETE"
)
const (
Host_Reqres = "https://jsonplaceholder.typicode.com"
)
const (
JSONType = "application/json"
XMLType = "application/xml"
URLEncodedType = "application/x-www-form-urlencoded"
STREAMType = "application/octet-stream"
)
const (
Jwt_Refresh_Expired_Periode = 3600
Jwt_Token_Expired_Periode = 3600
)
const (
Endpoint_Auth_Register = `/api.gogrpc.v1.auth.AuthService/Register`
Endpoint_Auth_Login = `/api.gogrpc.v1.auth.AuthService/Login`
)