defi_controller

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for defi controller API

func (*Client) GetDefiInfoUsingGET

func (a *Client) GetDefiInfoUsingGET(params *GetDefiInfoUsingGETParams) (*GetDefiInfoUsingGETOK, error)

GetDefiInfoUsingGET rugs pull detection API beta

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetDefiInfoUsingGET(params *GetDefiInfoUsingGETParams) (*GetDefiInfoUsingGETOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new defi controller API client.

type GetDefiInfoUsingGETForbidden

type GetDefiInfoUsingGETForbidden struct {
}

GetDefiInfoUsingGETForbidden handles this case with default header values.

Forbidden

func NewGetDefiInfoUsingGETForbidden

func NewGetDefiInfoUsingGETForbidden() *GetDefiInfoUsingGETForbidden

NewGetDefiInfoUsingGETForbidden creates a GetDefiInfoUsingGETForbidden with default headers values

func (*GetDefiInfoUsingGETForbidden) Error

type GetDefiInfoUsingGETNotFound

type GetDefiInfoUsingGETNotFound struct {
}

GetDefiInfoUsingGETNotFound handles this case with default header values.

Not Found

func NewGetDefiInfoUsingGETNotFound

func NewGetDefiInfoUsingGETNotFound() *GetDefiInfoUsingGETNotFound

NewGetDefiInfoUsingGETNotFound creates a GetDefiInfoUsingGETNotFound with default headers values

func (*GetDefiInfoUsingGETNotFound) Error

type GetDefiInfoUsingGETOK

type GetDefiInfoUsingGETOK struct {
	Payload *models.GetDefiInfoResponse
}

GetDefiInfoUsingGETOK handles this case with default header values.

OK

func NewGetDefiInfoUsingGETOK

func NewGetDefiInfoUsingGETOK() *GetDefiInfoUsingGETOK

NewGetDefiInfoUsingGETOK creates a GetDefiInfoUsingGETOK with default headers values

func (*GetDefiInfoUsingGETOK) Error

func (o *GetDefiInfoUsingGETOK) Error() string

func (*GetDefiInfoUsingGETOK) GetPayload

type GetDefiInfoUsingGETParams

type GetDefiInfoUsingGETParams struct {

	/*Authorization
	  Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)

	*/
	Authorization *string
	/*ChainID
	  Chain id, (eth: 1, bsc: 56)

	*/
	ChainID string
	/*ContractAddresses
	  Defi protocol address

	*/
	ContractAddresses string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDefiInfoUsingGETParams contains all the parameters to send to the API endpoint for the get defi info using g e t operation typically these are written to a http.Request

func NewGetDefiInfoUsingGETParams

func NewGetDefiInfoUsingGETParams() *GetDefiInfoUsingGETParams

NewGetDefiInfoUsingGETParams creates a new GetDefiInfoUsingGETParams object with the default values initialized.

func NewGetDefiInfoUsingGETParamsWithContext

func NewGetDefiInfoUsingGETParamsWithContext(ctx context.Context) *GetDefiInfoUsingGETParams

NewGetDefiInfoUsingGETParamsWithContext creates a new GetDefiInfoUsingGETParams object with the default values initialized, and the ability to set a context for a request

func NewGetDefiInfoUsingGETParamsWithHTTPClient

func NewGetDefiInfoUsingGETParamsWithHTTPClient(client *http.Client) *GetDefiInfoUsingGETParams

NewGetDefiInfoUsingGETParamsWithHTTPClient creates a new GetDefiInfoUsingGETParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetDefiInfoUsingGETParamsWithTimeout

func NewGetDefiInfoUsingGETParamsWithTimeout(timeout time.Duration) *GetDefiInfoUsingGETParams

NewGetDefiInfoUsingGETParamsWithTimeout creates a new GetDefiInfoUsingGETParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetDefiInfoUsingGETParams) SetAuthorization

func (o *GetDefiInfoUsingGETParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) SetChainID

func (o *GetDefiInfoUsingGETParams) SetChainID(chainID string)

SetChainID adds the chainId to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) SetContext

func (o *GetDefiInfoUsingGETParams) SetContext(ctx context.Context)

SetContext adds the context to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) SetContractAddresses

func (o *GetDefiInfoUsingGETParams) SetContractAddresses(contractAddresses string)

SetContractAddresses adds the contractAddresses to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) SetHTTPClient

func (o *GetDefiInfoUsingGETParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) SetTimeout

func (o *GetDefiInfoUsingGETParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) WithAuthorization

func (o *GetDefiInfoUsingGETParams) WithAuthorization(authorization *string) *GetDefiInfoUsingGETParams

WithAuthorization adds the authorization to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) WithChainID

WithChainID adds the chainID to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) WithContext

WithContext adds the context to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) WithContractAddresses

func (o *GetDefiInfoUsingGETParams) WithContractAddresses(contractAddresses string) *GetDefiInfoUsingGETParams

WithContractAddresses adds the contractAddresses to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) WithHTTPClient

func (o *GetDefiInfoUsingGETParams) WithHTTPClient(client *http.Client) *GetDefiInfoUsingGETParams

WithHTTPClient adds the HTTPClient to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get defi info using g e t params

func (*GetDefiInfoUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDefiInfoUsingGETReader

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

GetDefiInfoUsingGETReader is a Reader for the GetDefiInfoUsingGET structure.

func (*GetDefiInfoUsingGETReader) ReadResponse

func (o *GetDefiInfoUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetDefiInfoUsingGETUnauthorized

type GetDefiInfoUsingGETUnauthorized struct {
}

GetDefiInfoUsingGETUnauthorized handles this case with default header values.

Unauthorized

func NewGetDefiInfoUsingGETUnauthorized

func NewGetDefiInfoUsingGETUnauthorized() *GetDefiInfoUsingGETUnauthorized

NewGetDefiInfoUsingGETUnauthorized creates a GetDefiInfoUsingGETUnauthorized with default headers values

func (*GetDefiInfoUsingGETUnauthorized) Error

Jump to

Keyboard shortcuts

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