Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, id string, opts ...option.RequestOption) error
- func (c *Client) Get(ctx context.Context, id string, opts ...option.RequestOption) (*management.GetSessionResponseContent, error)
- func (c *Client) Revoke(ctx context.Context, id string, opts ...option.RequestOption) error
- func (c *Client) Update(ctx context.Context, id string, ...) (*management.UpdateSessionResponseContent, error)
- type RawClient
- func (r *RawClient) Delete(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[any], error)
- func (r *RawClient) Get(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[*management.GetSessionResponseContent], error)
- func (r *RawClient) Revoke(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[any], error)
- func (r *RawClient) Update(ctx context.Context, id string, ...) (*core.Response[*management.UpdateSessionResponseContent], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *core.RequestOptions) *Client
func (*Client) Get ¶
func (c *Client) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (*management.GetSessionResponseContent, error)
Retrieve session information.
func (*Client) Update ¶
func (c *Client) Update( ctx context.Context, id string, request *management.UpdateSessionRequestContent, opts ...option.RequestOption, ) (*management.UpdateSessionResponseContent, error)
Update session information.
type RawClient ¶
type RawClient struct {
// contains filtered or unexported fields
}
func NewRawClient ¶
func NewRawClient(options *core.RequestOptions) *RawClient
func (*RawClient) Get ¶
func (r *RawClient) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (*core.Response[*management.GetSessionResponseContent], error)
func (*RawClient) Update ¶
func (r *RawClient) Update( ctx context.Context, id string, request *management.UpdateSessionRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.UpdateSessionResponseContent], error)
Click to show internal directories.
Click to hide internal directories.