{"modulePath":"github.com/CTO2BPublic/passage-server","version":"v0.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package client\n\n## Variables\n\n```go\nvar Config = config.GetConfig()\n```\n\n## Functions\n\n```go\nfunc NewStaticToken(id string) string\n```\n\n## Types\n\n```go\ntype ApiClient struct {\n\tUrl   string\n\tToken string\n}\n```\n\n```go\nfunc NewApiClient(opts ApiClientOpts) *ApiClient\n```\n\n```go\nfunc (c *ApiClient) ExpireAccessRequest(opts ExpireAccessRequestOpts) (response ClientResponse, statusCode int, err error)\n```\n\n```go\nfunc (c *ApiClient) GetAccessRequests(opts GetAccessRequestsOpts) (response []models.AccessRequest, statusCode int, err error)\n```\n\n```go\ntype ApiClientOpts struct {\n\tUrl   string\n\tToken string\n}\n```\n\n```go\ntype ClientRequest struct {\n\tBody        interface{}\n\tApiEndpoint string\n\tMethod      string\n}\n```\n\n```go\ntype ClientResponse struct {\n\tStatus int    `example:\"201\"`\n\tTitle  string `example:\"Record successfully created\"`\n\tType   string `example:\"/status/success\"`\n\tError  string `example:\"Missing required fields\"`\n}\n```\n\n```go\ntype ExpireAccessRequestOpts struct {\n\tId string\n}\n```\n\n```go\ntype GetAccessRequestsOpts struct {\n\tStatus string\n}\n```\n\n","path":"github.com/CTO2BPublic/passage-server/pkg/client","name":"client","synopsis":"","isRedistributable":true}
