Documentation ¶
Index ¶
Constants ¶
View Source
const ( DELETE = "DELETE" POST = "POST" GET = "GET" UPDATE = "UPDATE" )
View Source
const ( HOST = "url" PATH = "path" EMAIL = "email" PASSWORD = "password" MASTER_KEY = "master_key" API_KEY = "api_key" ORG_ID = "org_id" X_Megam_EMAIL = "X-Megam-EMAIL" X_Megam_MASTERKEY = "X-Megam-MASTERKEY" X_Megam_PUTTUSAVI = "X-Megam-PUTTUSAVI" X_Megam_DATE = "X-Megam-DATE" X_Megam_HMAC = "X-Megam-HMAC" X_Megam_OTTAI = "X-Megam-OTTAI" X_Megam_ORG = "X-Megam-ORG" Content_Type = "Content-Type" Accept = "Accept" )
View Source
const (
REQUEST_CREATE = "/requests/content"
)
Variables ¶
This section is empty.
Functions ¶
func CalcBase64 ¶
func GetMD5Hash ¶
Types ¶
type ApiArgs ¶
type Authly ¶
type Authly struct { UrlSuffix string Date string JSONBody []byte Keys map[string]string AuthMap map[string]string }
func NewAuthly ¶
func NewAuthly(c VerticeApi) *Authly
func (*Authly) AuthHeader ¶
type Client ¶
type Client struct { HTTPClient *http.Client Authly *Authly Url string // contains filtered or unexported fields }
func NewClient ¶
func NewClient(c VerticeApi, path string) *Client
type Requests ¶
type Requests struct { Name string `json:"name" cql:"name"` AccountId string `json:"account_id" cql:"account_id"` CatId string `json:"cat_id" cql:"cat_id"` Action string `json:"action" cql:"action"` Category string `json:"category" cql:"category"` CatType string `json:"cattype" cql:"cattype"` }
func NewRequest ¶
type VerticeApi ¶
Click to show internal directories.
Click to hide internal directories.