market_manager

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

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 market manager API

func New

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

New creates a new market manager API client.

func (*Client) CreateMarket

func (a *Client) CreateMarket(params *CreateMarketParams, authInfo runtime.ClientAuthInfoWriter) (*CreateMarketOK, error)

CreateMarket creates market

func (*Client) DeleteMarkets

func (a *Client) DeleteMarkets(params *DeleteMarketsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteMarketsOK, error)

DeleteMarkets deletes markets

func (*Client) DescribeMarketUsers

func (a *Client) DescribeMarketUsers(params *DescribeMarketUsersParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeMarketUsersOK, error)

DescribeMarketUsers gets users with filter

func (*Client) DescribeMarkets

func (a *Client) DescribeMarkets(params *DescribeMarketsParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeMarketsOK, error)

DescribeMarkets describes markets with filter

func (*Client) ModifyMarket

func (a *Client) ModifyMarket(params *ModifyMarketParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyMarketOK, error)

ModifyMarket modifies market

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UserJoinMarket

func (a *Client) UserJoinMarket(params *UserJoinMarketParams, authInfo runtime.ClientAuthInfoWriter) (*UserJoinMarketOK, error)

UserJoinMarket joins market

func (*Client) UserLeaveMarket

func (a *Client) UserLeaveMarket(params *UserLeaveMarketParams, authInfo runtime.ClientAuthInfoWriter) (*UserLeaveMarketOK, error)

UserLeaveMarket leaves market

type CreateMarketOK

type CreateMarketOK struct {
	Payload *models.OpenpitrixCreateMarketResponse
}

CreateMarketOK handles this case with default header values.

A successful response.

func NewCreateMarketOK

func NewCreateMarketOK() *CreateMarketOK

NewCreateMarketOK creates a CreateMarketOK with default headers values

func (*CreateMarketOK) Error

func (o *CreateMarketOK) Error() string

type CreateMarketParams

type CreateMarketParams struct {

	/*Body*/
	Body *models.OpenpitrixCreateMarketRequest

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

CreateMarketParams contains all the parameters to send to the API endpoint for the create market operation typically these are written to a http.Request

func NewCreateMarketParams

func NewCreateMarketParams() *CreateMarketParams

NewCreateMarketParams creates a new CreateMarketParams object with the default values initialized.

func NewCreateMarketParamsWithContext

func NewCreateMarketParamsWithContext(ctx context.Context) *CreateMarketParams

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

func NewCreateMarketParamsWithHTTPClient

func NewCreateMarketParamsWithHTTPClient(client *http.Client) *CreateMarketParams

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

func NewCreateMarketParamsWithTimeout

func NewCreateMarketParamsWithTimeout(timeout time.Duration) *CreateMarketParams

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

func (*CreateMarketParams) SetBody

SetBody adds the body to the create market params

func (*CreateMarketParams) SetContext

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

SetContext adds the context to the create market params

func (*CreateMarketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create market params

func (*CreateMarketParams) SetTimeout

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

SetTimeout adds the timeout to the create market params

func (*CreateMarketParams) WithBody

WithBody adds the body to the create market params

func (*CreateMarketParams) WithContext

WithContext adds the context to the create market params

func (*CreateMarketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create market params

func (*CreateMarketParams) WithTimeout

func (o *CreateMarketParams) WithTimeout(timeout time.Duration) *CreateMarketParams

WithTimeout adds the timeout to the create market params

func (*CreateMarketParams) WriteToRequest

func (o *CreateMarketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateMarketReader

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

CreateMarketReader is a Reader for the CreateMarket structure.

func (*CreateMarketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMarketsOK

type DeleteMarketsOK struct {
	Payload *models.OpenpitrixDeleteMarketsResponse
}

DeleteMarketsOK handles this case with default header values.

A successful response.

func NewDeleteMarketsOK

func NewDeleteMarketsOK() *DeleteMarketsOK

NewDeleteMarketsOK creates a DeleteMarketsOK with default headers values

func (*DeleteMarketsOK) Error

func (o *DeleteMarketsOK) Error() string

type DeleteMarketsParams

type DeleteMarketsParams struct {

	/*Body*/
	Body *models.OpenpitrixDeleteMarketsRequest

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

DeleteMarketsParams contains all the parameters to send to the API endpoint for the delete markets operation typically these are written to a http.Request

func NewDeleteMarketsParams

func NewDeleteMarketsParams() *DeleteMarketsParams

NewDeleteMarketsParams creates a new DeleteMarketsParams object with the default values initialized.

func NewDeleteMarketsParamsWithContext

func NewDeleteMarketsParamsWithContext(ctx context.Context) *DeleteMarketsParams

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

func NewDeleteMarketsParamsWithHTTPClient

func NewDeleteMarketsParamsWithHTTPClient(client *http.Client) *DeleteMarketsParams

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

func NewDeleteMarketsParamsWithTimeout

func NewDeleteMarketsParamsWithTimeout(timeout time.Duration) *DeleteMarketsParams

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

func (*DeleteMarketsParams) SetBody

SetBody adds the body to the delete markets params

func (*DeleteMarketsParams) SetContext

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

SetContext adds the context to the delete markets params

func (*DeleteMarketsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete markets params

func (*DeleteMarketsParams) SetTimeout

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

SetTimeout adds the timeout to the delete markets params

func (*DeleteMarketsParams) WithBody

WithBody adds the body to the delete markets params

func (*DeleteMarketsParams) WithContext

WithContext adds the context to the delete markets params

func (*DeleteMarketsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete markets params

func (*DeleteMarketsParams) WithTimeout

func (o *DeleteMarketsParams) WithTimeout(timeout time.Duration) *DeleteMarketsParams

WithTimeout adds the timeout to the delete markets params

func (*DeleteMarketsParams) WriteToRequest

func (o *DeleteMarketsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteMarketsReader

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

DeleteMarketsReader is a Reader for the DeleteMarkets structure.

func (*DeleteMarketsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DescribeMarketUsersOK

type DescribeMarketUsersOK struct {
	Payload *models.OpenpitrixDescribeMarketUsersResponse
}

DescribeMarketUsersOK handles this case with default header values.

A successful response.

func NewDescribeMarketUsersOK

func NewDescribeMarketUsersOK() *DescribeMarketUsersOK

NewDescribeMarketUsersOK creates a DescribeMarketUsersOK with default headers values

func (*DescribeMarketUsersOK) Error

func (o *DescribeMarketUsersOK) Error() string

type DescribeMarketUsersParams

type DescribeMarketUsersParams struct {

	/*Limit
	  default is 20, max value is 200.

	*/
	Limit *int64
	/*MarketID*/
	MarketID []string
	/*Offset
	  default is 0.

	*/
	Offset *int64
	/*Owner*/
	Owner []string
	/*Reverse
	  value = 0 sort ASC, value = 1 sort DESC.

	*/
	Reverse *bool
	/*SearchWord*/
	SearchWord *string
	/*SortKey
	  sort key, order by sort_key, default create_time.

	*/
	SortKey *string
	/*UserID*/
	UserID []string

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

DescribeMarketUsersParams contains all the parameters to send to the API endpoint for the describe market users operation typically these are written to a http.Request

func NewDescribeMarketUsersParams

func NewDescribeMarketUsersParams() *DescribeMarketUsersParams

NewDescribeMarketUsersParams creates a new DescribeMarketUsersParams object with the default values initialized.

func NewDescribeMarketUsersParamsWithContext

func NewDescribeMarketUsersParamsWithContext(ctx context.Context) *DescribeMarketUsersParams

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

func NewDescribeMarketUsersParamsWithHTTPClient

func NewDescribeMarketUsersParamsWithHTTPClient(client *http.Client) *DescribeMarketUsersParams

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

func NewDescribeMarketUsersParamsWithTimeout

func NewDescribeMarketUsersParamsWithTimeout(timeout time.Duration) *DescribeMarketUsersParams

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

func (*DescribeMarketUsersParams) SetContext

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

SetContext adds the context to the describe market users params

func (*DescribeMarketUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the describe market users params

func (*DescribeMarketUsersParams) SetLimit

func (o *DescribeMarketUsersParams) SetLimit(limit *int64)

SetLimit adds the limit to the describe market users params

func (*DescribeMarketUsersParams) SetMarketID

func (o *DescribeMarketUsersParams) SetMarketID(marketID []string)

SetMarketID adds the marketId to the describe market users params

func (*DescribeMarketUsersParams) SetOffset

func (o *DescribeMarketUsersParams) SetOffset(offset *int64)

SetOffset adds the offset to the describe market users params

func (*DescribeMarketUsersParams) SetOwner

func (o *DescribeMarketUsersParams) SetOwner(owner []string)

SetOwner adds the owner to the describe market users params

func (*DescribeMarketUsersParams) SetReverse

func (o *DescribeMarketUsersParams) SetReverse(reverse *bool)

SetReverse adds the reverse to the describe market users params

func (*DescribeMarketUsersParams) SetSearchWord

func (o *DescribeMarketUsersParams) SetSearchWord(searchWord *string)

SetSearchWord adds the searchWord to the describe market users params

func (*DescribeMarketUsersParams) SetSortKey

func (o *DescribeMarketUsersParams) SetSortKey(sortKey *string)

SetSortKey adds the sortKey to the describe market users params

func (*DescribeMarketUsersParams) SetTimeout

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

SetTimeout adds the timeout to the describe market users params

func (*DescribeMarketUsersParams) SetUserID

func (o *DescribeMarketUsersParams) SetUserID(userID []string)

SetUserID adds the userId to the describe market users params

func (*DescribeMarketUsersParams) WithContext

WithContext adds the context to the describe market users params

func (*DescribeMarketUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the describe market users params

func (*DescribeMarketUsersParams) WithLimit

WithLimit adds the limit to the describe market users params

func (*DescribeMarketUsersParams) WithMarketID

func (o *DescribeMarketUsersParams) WithMarketID(marketID []string) *DescribeMarketUsersParams

WithMarketID adds the marketID to the describe market users params

func (*DescribeMarketUsersParams) WithOffset

WithOffset adds the offset to the describe market users params

func (*DescribeMarketUsersParams) WithOwner

WithOwner adds the owner to the describe market users params

func (*DescribeMarketUsersParams) WithReverse

func (o *DescribeMarketUsersParams) WithReverse(reverse *bool) *DescribeMarketUsersParams

WithReverse adds the reverse to the describe market users params

func (*DescribeMarketUsersParams) WithSearchWord

func (o *DescribeMarketUsersParams) WithSearchWord(searchWord *string) *DescribeMarketUsersParams

WithSearchWord adds the searchWord to the describe market users params

func (*DescribeMarketUsersParams) WithSortKey

WithSortKey adds the sortKey to the describe market users params

func (*DescribeMarketUsersParams) WithTimeout

WithTimeout adds the timeout to the describe market users params

func (*DescribeMarketUsersParams) WithUserID

WithUserID adds the userID to the describe market users params

func (*DescribeMarketUsersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DescribeMarketUsersReader

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

DescribeMarketUsersReader is a Reader for the DescribeMarketUsers structure.

func (*DescribeMarketUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DescribeMarketsOK

type DescribeMarketsOK struct {
	Payload *models.OpenpitrixDescribeMarketsResponse
}

DescribeMarketsOK handles this case with default header values.

A successful response.

func NewDescribeMarketsOK

func NewDescribeMarketsOK() *DescribeMarketsOK

NewDescribeMarketsOK creates a DescribeMarketsOK with default headers values

func (*DescribeMarketsOK) Error

func (o *DescribeMarketsOK) Error() string

type DescribeMarketsParams

type DescribeMarketsParams struct {

	/*Limit
	  default is 20, max value is 200.

	*/
	Limit *int64
	/*MarketID*/
	MarketID []string
	/*Name*/
	Name []string
	/*Offset
	  default is 0.

	*/
	Offset *int64
	/*Owner*/
	Owner []string
	/*Reverse
	  value = 0 sort ASC, value = 1 sort DESC.

	*/
	Reverse *bool
	/*SearchWord*/
	SearchWord *string
	/*SortKey
	  sort key, order by sort_key, default create_time.

	*/
	SortKey *string
	/*Status*/
	Status []string
	/*UserID*/
	UserID []string
	/*Visibility*/
	Visibility []string

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

DescribeMarketsParams contains all the parameters to send to the API endpoint for the describe markets operation typically these are written to a http.Request

func NewDescribeMarketsParams

func NewDescribeMarketsParams() *DescribeMarketsParams

NewDescribeMarketsParams creates a new DescribeMarketsParams object with the default values initialized.

func NewDescribeMarketsParamsWithContext

func NewDescribeMarketsParamsWithContext(ctx context.Context) *DescribeMarketsParams

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

func NewDescribeMarketsParamsWithHTTPClient

func NewDescribeMarketsParamsWithHTTPClient(client *http.Client) *DescribeMarketsParams

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

func NewDescribeMarketsParamsWithTimeout

func NewDescribeMarketsParamsWithTimeout(timeout time.Duration) *DescribeMarketsParams

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

func (*DescribeMarketsParams) SetContext

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

SetContext adds the context to the describe markets params

func (*DescribeMarketsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the describe markets params

func (*DescribeMarketsParams) SetLimit

func (o *DescribeMarketsParams) SetLimit(limit *int64)

SetLimit adds the limit to the describe markets params

func (*DescribeMarketsParams) SetMarketID

func (o *DescribeMarketsParams) SetMarketID(marketID []string)

SetMarketID adds the marketId to the describe markets params

func (*DescribeMarketsParams) SetName

func (o *DescribeMarketsParams) SetName(name []string)

SetName adds the name to the describe markets params

func (*DescribeMarketsParams) SetOffset

func (o *DescribeMarketsParams) SetOffset(offset *int64)

SetOffset adds the offset to the describe markets params

func (*DescribeMarketsParams) SetOwner

func (o *DescribeMarketsParams) SetOwner(owner []string)

SetOwner adds the owner to the describe markets params

func (*DescribeMarketsParams) SetReverse

func (o *DescribeMarketsParams) SetReverse(reverse *bool)

SetReverse adds the reverse to the describe markets params

func (*DescribeMarketsParams) SetSearchWord

func (o *DescribeMarketsParams) SetSearchWord(searchWord *string)

SetSearchWord adds the searchWord to the describe markets params

func (*DescribeMarketsParams) SetSortKey

func (o *DescribeMarketsParams) SetSortKey(sortKey *string)

SetSortKey adds the sortKey to the describe markets params

func (*DescribeMarketsParams) SetStatus

func (o *DescribeMarketsParams) SetStatus(status []string)

SetStatus adds the status to the describe markets params

func (*DescribeMarketsParams) SetTimeout

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

SetTimeout adds the timeout to the describe markets params

func (*DescribeMarketsParams) SetUserID

func (o *DescribeMarketsParams) SetUserID(userID []string)

SetUserID adds the userId to the describe markets params

func (*DescribeMarketsParams) SetVisibility

func (o *DescribeMarketsParams) SetVisibility(visibility []string)

SetVisibility adds the visibility to the describe markets params

func (*DescribeMarketsParams) WithContext

WithContext adds the context to the describe markets params

func (*DescribeMarketsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the describe markets params

func (*DescribeMarketsParams) WithLimit

func (o *DescribeMarketsParams) WithLimit(limit *int64) *DescribeMarketsParams

WithLimit adds the limit to the describe markets params

func (*DescribeMarketsParams) WithMarketID

func (o *DescribeMarketsParams) WithMarketID(marketID []string) *DescribeMarketsParams

WithMarketID adds the marketID to the describe markets params

func (*DescribeMarketsParams) WithName

func (o *DescribeMarketsParams) WithName(name []string) *DescribeMarketsParams

WithName adds the name to the describe markets params

func (*DescribeMarketsParams) WithOffset

func (o *DescribeMarketsParams) WithOffset(offset *int64) *DescribeMarketsParams

WithOffset adds the offset to the describe markets params

func (*DescribeMarketsParams) WithOwner

func (o *DescribeMarketsParams) WithOwner(owner []string) *DescribeMarketsParams

WithOwner adds the owner to the describe markets params

func (*DescribeMarketsParams) WithReverse

func (o *DescribeMarketsParams) WithReverse(reverse *bool) *DescribeMarketsParams

WithReverse adds the reverse to the describe markets params

func (*DescribeMarketsParams) WithSearchWord

func (o *DescribeMarketsParams) WithSearchWord(searchWord *string) *DescribeMarketsParams

WithSearchWord adds the searchWord to the describe markets params

func (*DescribeMarketsParams) WithSortKey

func (o *DescribeMarketsParams) WithSortKey(sortKey *string) *DescribeMarketsParams

WithSortKey adds the sortKey to the describe markets params

func (*DescribeMarketsParams) WithStatus

func (o *DescribeMarketsParams) WithStatus(status []string) *DescribeMarketsParams

WithStatus adds the status to the describe markets params

func (*DescribeMarketsParams) WithTimeout

func (o *DescribeMarketsParams) WithTimeout(timeout time.Duration) *DescribeMarketsParams

WithTimeout adds the timeout to the describe markets params

func (*DescribeMarketsParams) WithUserID

func (o *DescribeMarketsParams) WithUserID(userID []string) *DescribeMarketsParams

WithUserID adds the userID to the describe markets params

func (*DescribeMarketsParams) WithVisibility

func (o *DescribeMarketsParams) WithVisibility(visibility []string) *DescribeMarketsParams

WithVisibility adds the visibility to the describe markets params

func (*DescribeMarketsParams) WriteToRequest

func (o *DescribeMarketsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DescribeMarketsReader

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

DescribeMarketsReader is a Reader for the DescribeMarkets structure.

func (*DescribeMarketsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModifyMarketOK

type ModifyMarketOK struct {
	Payload *models.OpenpitrixModifyMarketResponse
}

ModifyMarketOK handles this case with default header values.

A successful response.

func NewModifyMarketOK

func NewModifyMarketOK() *ModifyMarketOK

NewModifyMarketOK creates a ModifyMarketOK with default headers values

func (*ModifyMarketOK) Error

func (o *ModifyMarketOK) Error() string

type ModifyMarketParams

type ModifyMarketParams struct {

	/*Body*/
	Body *models.OpenpitrixModifyMarketRequest

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

ModifyMarketParams contains all the parameters to send to the API endpoint for the modify market operation typically these are written to a http.Request

func NewModifyMarketParams

func NewModifyMarketParams() *ModifyMarketParams

NewModifyMarketParams creates a new ModifyMarketParams object with the default values initialized.

func NewModifyMarketParamsWithContext

func NewModifyMarketParamsWithContext(ctx context.Context) *ModifyMarketParams

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

func NewModifyMarketParamsWithHTTPClient

func NewModifyMarketParamsWithHTTPClient(client *http.Client) *ModifyMarketParams

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

func NewModifyMarketParamsWithTimeout

func NewModifyMarketParamsWithTimeout(timeout time.Duration) *ModifyMarketParams

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

func (*ModifyMarketParams) SetBody

SetBody adds the body to the modify market params

func (*ModifyMarketParams) SetContext

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

SetContext adds the context to the modify market params

func (*ModifyMarketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the modify market params

func (*ModifyMarketParams) SetTimeout

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

SetTimeout adds the timeout to the modify market params

func (*ModifyMarketParams) WithBody

WithBody adds the body to the modify market params

func (*ModifyMarketParams) WithContext

WithContext adds the context to the modify market params

func (*ModifyMarketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the modify market params

func (*ModifyMarketParams) WithTimeout

func (o *ModifyMarketParams) WithTimeout(timeout time.Duration) *ModifyMarketParams

WithTimeout adds the timeout to the modify market params

func (*ModifyMarketParams) WriteToRequest

func (o *ModifyMarketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ModifyMarketReader

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

ModifyMarketReader is a Reader for the ModifyMarket structure.

func (*ModifyMarketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserJoinMarketOK

type UserJoinMarketOK struct {
	Payload *models.OpenpitrixUserJoinMarketResponse
}

UserJoinMarketOK handles this case with default header values.

A successful response.

func NewUserJoinMarketOK

func NewUserJoinMarketOK() *UserJoinMarketOK

NewUserJoinMarketOK creates a UserJoinMarketOK with default headers values

func (*UserJoinMarketOK) Error

func (o *UserJoinMarketOK) Error() string

type UserJoinMarketParams

type UserJoinMarketParams struct {

	/*Body*/
	Body *models.OpenpitrixUserJoinMarketRequest

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

UserJoinMarketParams contains all the parameters to send to the API endpoint for the user join market operation typically these are written to a http.Request

func NewUserJoinMarketParams

func NewUserJoinMarketParams() *UserJoinMarketParams

NewUserJoinMarketParams creates a new UserJoinMarketParams object with the default values initialized.

func NewUserJoinMarketParamsWithContext

func NewUserJoinMarketParamsWithContext(ctx context.Context) *UserJoinMarketParams

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

func NewUserJoinMarketParamsWithHTTPClient

func NewUserJoinMarketParamsWithHTTPClient(client *http.Client) *UserJoinMarketParams

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

func NewUserJoinMarketParamsWithTimeout

func NewUserJoinMarketParamsWithTimeout(timeout time.Duration) *UserJoinMarketParams

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

func (*UserJoinMarketParams) SetBody

SetBody adds the body to the user join market params

func (*UserJoinMarketParams) SetContext

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

SetContext adds the context to the user join market params

func (*UserJoinMarketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user join market params

func (*UserJoinMarketParams) SetTimeout

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

SetTimeout adds the timeout to the user join market params

func (*UserJoinMarketParams) WithBody

WithBody adds the body to the user join market params

func (*UserJoinMarketParams) WithContext

WithContext adds the context to the user join market params

func (*UserJoinMarketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user join market params

func (*UserJoinMarketParams) WithTimeout

func (o *UserJoinMarketParams) WithTimeout(timeout time.Duration) *UserJoinMarketParams

WithTimeout adds the timeout to the user join market params

func (*UserJoinMarketParams) WriteToRequest

func (o *UserJoinMarketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UserJoinMarketReader

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

UserJoinMarketReader is a Reader for the UserJoinMarket structure.

func (*UserJoinMarketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserLeaveMarketOK

type UserLeaveMarketOK struct {
	Payload *models.OpenpitrixUserLeaveMarketResponse
}

UserLeaveMarketOK handles this case with default header values.

A successful response.

func NewUserLeaveMarketOK

func NewUserLeaveMarketOK() *UserLeaveMarketOK

NewUserLeaveMarketOK creates a UserLeaveMarketOK with default headers values

func (*UserLeaveMarketOK) Error

func (o *UserLeaveMarketOK) Error() string

type UserLeaveMarketParams

type UserLeaveMarketParams struct {

	/*Body*/
	Body *models.OpenpitrixUserLeaveMarketRequest

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

UserLeaveMarketParams contains all the parameters to send to the API endpoint for the user leave market operation typically these are written to a http.Request

func NewUserLeaveMarketParams

func NewUserLeaveMarketParams() *UserLeaveMarketParams

NewUserLeaveMarketParams creates a new UserLeaveMarketParams object with the default values initialized.

func NewUserLeaveMarketParamsWithContext

func NewUserLeaveMarketParamsWithContext(ctx context.Context) *UserLeaveMarketParams

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

func NewUserLeaveMarketParamsWithHTTPClient

func NewUserLeaveMarketParamsWithHTTPClient(client *http.Client) *UserLeaveMarketParams

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

func NewUserLeaveMarketParamsWithTimeout

func NewUserLeaveMarketParamsWithTimeout(timeout time.Duration) *UserLeaveMarketParams

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

func (*UserLeaveMarketParams) SetBody

SetBody adds the body to the user leave market params

func (*UserLeaveMarketParams) SetContext

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

SetContext adds the context to the user leave market params

func (*UserLeaveMarketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user leave market params

func (*UserLeaveMarketParams) SetTimeout

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

SetTimeout adds the timeout to the user leave market params

func (*UserLeaveMarketParams) WithBody

WithBody adds the body to the user leave market params

func (*UserLeaveMarketParams) WithContext

WithContext adds the context to the user leave market params

func (*UserLeaveMarketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user leave market params

func (*UserLeaveMarketParams) WithTimeout

func (o *UserLeaveMarketParams) WithTimeout(timeout time.Duration) *UserLeaveMarketParams

WithTimeout adds the timeout to the user leave market params

func (*UserLeaveMarketParams) WriteToRequest

func (o *UserLeaveMarketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UserLeaveMarketReader

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

UserLeaveMarketReader is a Reader for the UserLeaveMarket structure.

func (*UserLeaveMarketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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