package
Version:
v0.0.0-...-4add913
Opens a new window with list of versions in this module.
Published: Apr 8, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package client handles the permify client to connect with the server
-
func Delete(host, path string, query map[string]string, respModel interface{}) error
-
func Get(host, path string, query map[string]string, respModel interface{}) error
-
func New(endpoint string) (*permify.Client, error)
-
func Post(host, path string, query map[string]string, ...) error
-
func Put(host, path string, query map[string]string, ...) error
-
func ReadErrorResponse(StatusCode int, body []byte) error
-
type ErrorResponse
Delete request implementation
Get request implementation
New initializes a new permify client
Post request implementation
Put request implementation
ReadErrorResponse reads the error returned from the server if any
type ErrorResponse struct {
StatusCode int `json:"status_code"`
ErrorCode int `json:"code"`
Message string `json:"message"`
Detail []string `json:"detail"`
}
ErrorResponse defines the generic error response received from the server
Source Files
¶
Click to show internal directories.
Click to hide internal directories.