introspection

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 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 Body

type Body struct {
	Data     Data
	Endpoint string
}

type Data

type Data struct {
	Active      bool      `json:"active"`
	AccessToken *string   `json:"access_token"`
	ClientID    *string   `json:"client_id"`
	UserID      *string   `json:"user_id"`
	Scopes      *[]string `json:"scopes"`
	User        *User     `json:"user"`
}

type Payload

type Payload struct {
	Token string `json:"token"`
}

type Request

type Request struct {
	Method  string
	Url     string
	Headers map[string]string
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(requestMethod, url string) Request

func (*Request) Build

func (r *Request) Build() *http.Request

func (*Request) Payload

func (r *Request) Payload(p interface{})

func (*Request) SetHeader

func (r *Request) SetHeader(key, value string)

type Response

type Response struct {
	Body       Body
	StatusCode int
}

func NewIntrospectionResponse

func NewIntrospectionResponse(resp *http.Response) *Response

type User added in v0.0.4

type User struct {
	Email       string `json:"email"`
	ActivatedAt string `json:"activated_at"`
	CreatedAt   string `json:"created_at"`
	UpdatedAt   string `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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