auth0mgmt

package
v0.0.0-...-8aeaac4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func NewApi

func NewApi(params *NewApiParams) *Api

func (*Api) Base

func (s *Api) Base() *sling.Sling

func (*Api) Delete

func (s *Api) Delete(path string, params, result interface{}) (*http.Response, error)

func (*Api) Get

func (s *Api) Get(path string, params, result interface{}) (*http.Response, error)

func (*Api) Patch

func (s *Api) Patch(path string, params, result interface{}) (*http.Response, error)

func (*Api) Post

func (s *Api) Post(path string, params, result interface{}) (*http.Response, error)

func (*Api) Receive

func (s *Api) Receive(decorate SlingDecorator, result *interface{}) (*http.Response, error)

type ApiError

type ApiError struct {
	StatusCode int64  `json:"statusCode,omitempty"`
	Code       string `json:"errorCode,omitempty"`
	Name       string `json:"error,omitempty"`
	Message    string `json:"message,omitempty"`
}

func (*ApiError) Error

func (e *ApiError) Error() string

func (*ApiError) IsEmpty

func (e *ApiError) IsEmpty() bool

type ListParams

type ListParams struct {
	Page          interface{} `url:"page,omitempty"`
	PerPage       interface{} `url:"per_page,omitempty"`
	IncludeTotals interface{} `url:"include_totals,omitempty"`
	ReadParams
}

type NewApiParams

type NewApiParams struct {
	Domain      string
	AccessToken string
	HttpClient  *http.Client
}

type NewServiceParams

type NewServiceParams struct {
	Api *Api
}

type Params

type Params interface{}

type ReadParams

type ReadParams struct {
	Fields        interface{} `url:"fields,omitempty"`
	IncludeFields interface{} `url:"include_fields,omitempty"`
}

type Result

type Result interface{}

type Service

type Service struct {
	Api      *Api
	BasePath string
}

func (*Service) Path

func (s *Service) Path(paths ...string) string

type SlingDecorator

type SlingDecorator func(*sling.Sling) *sling.Sling

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL