blocklistidentifier

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by "gen"; DO NOT EDIT. This file is meant to be re-generated in place and/or deleted at any time.

Package blocklistidentifier provides the Blocklist Identifiers API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, params *CreateParams) (*clerk.BlocklistIdentifier, error)

Create adds a new identifier to the blocklist.

func Delete

func Delete(ctx context.Context, id string) (*clerk.DeletedResource, error)

Delete removes an identifier from the blocklist.

func List

func List(ctx context.Context, params *ListParams) (*clerk.BlocklistIdentifierList, error)

List returns all the identifiers in the blocklist.

Types

type Client

type Client struct {
	Backend clerk.Backend
}

Client is used to invoke the Blocklist Identifiers API.

func NewClient

func NewClient(config *clerk.ClientConfig) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, params *CreateParams) (*clerk.BlocklistIdentifier, error)

Create adds a new identifier to the blocklist.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id string) (*clerk.DeletedResource, error)

Delete removes an identifier from the blocklist.

func (*Client) List

func (c *Client) List(ctx context.Context, params *ListParams) (*clerk.BlocklistIdentifierList, error)

List returns all the identifiers in the blocklist.

type CreateParams

type CreateParams struct {
	clerk.APIParams
	Identifier *string `json:"identifier,omitempty"`
}

type ListParams

type ListParams struct {
	clerk.APIParams
}

Jump to

Keyboard shortcuts

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