session

package
v0.0.0-...-b0d199b Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2019 License: Apache-2.0 Imports: 11 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 session API

func New

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

New creates a new session API client.

func (*Client) GetSsoValidate

func (a *Client) GetSsoValidate(params *GetSsoValidateParams) (*GetSsoValidateOK, error)

GetSsoValidate validates s s o Validates the current session for the SSO user

func (*Client) PostAuthStatus

func (a *Client) PostAuthStatus(params *PostAuthStatusParams) (*PostAuthStatusOK, error)

PostAuthStatus authentications status Current Authentication status to the Brokerage system. Market Data and Trading is not possible if not authenticated, e.g. authenticated shows false

func (*Client) PostLogout

func (a *Client) PostLogout(params *PostLogoutParams) (*PostLogoutOK, error)

PostLogout ends the current session Logs the user out of the gateway session. Any further activity requires re-authentication.

func (*Client) PostReauthenticate

func (a *Client) PostReauthenticate(params *PostReauthenticateParams) (*PostReauthenticateOK, error)

PostReauthenticate tries to re authenticate to brokerage Provides a way to reauthenticate to the Brokerage system as long as there is a valid SSO session, see /sso/validate.

func (*Client) PostTickle

func (a *Client) PostTickle(params *PostTickleParams) (*PostTickleOK, error)

PostTickle pings the server to keep the session open

If the gateway has not received any requests for several minutes an open session will automatically timeout. The tickle endpoint pings the server to prevent the session from ending.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetSsoValidateInternalServerError

type GetSsoValidateInternalServerError struct {
}

GetSsoValidateInternalServerError handles this case with default header values.

System failed

func NewGetSsoValidateInternalServerError

func NewGetSsoValidateInternalServerError() *GetSsoValidateInternalServerError

NewGetSsoValidateInternalServerError creates a GetSsoValidateInternalServerError with default headers values

func (*GetSsoValidateInternalServerError) Error

type GetSsoValidateOK

type GetSsoValidateOK struct {
	Payload *GetSsoValidateOKBody
}

GetSsoValidateOK handles this case with default header values.

An Object

func NewGetSsoValidateOK

func NewGetSsoValidateOK() *GetSsoValidateOK

NewGetSsoValidateOK creates a GetSsoValidateOK with default headers values

func (*GetSsoValidateOK) Error

func (o *GetSsoValidateOK) Error() string

func (*GetSsoValidateOK) GetPayload

func (o *GetSsoValidateOK) GetPayload() *GetSsoValidateOKBody

type GetSsoValidateOKBody

type GetSsoValidateOKBody struct {

	// Time of session validation
	AUTHTIME float64 `json:"AUTH_TIME,omitempty"`

	// 1 for Live, 2 for Paper
	LoGINTYPE float64 `json:"LoGIN_TYPE,omitempty"`

	// true if session was validated; false if not.
	RESULT bool `json:"RESULT,omitempty"`

	// User ID
	USERID float64 `json:"USER_ID,omitempty"`

	// Username
	USERNAME string `json:"USER_NAME,omitempty"`

	// Time in milliseconds until session expires. Caller needs to call the again to re-validate session
	Expire float64 `json:"expire,omitempty"`
}

GetSsoValidateOKBody get sso validate o k body swagger:model GetSsoValidateOKBody

func (*GetSsoValidateOKBody) MarshalBinary

func (o *GetSsoValidateOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetSsoValidateOKBody) UnmarshalBinary

func (o *GetSsoValidateOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetSsoValidateOKBody) Validate

func (o *GetSsoValidateOKBody) Validate(formats strfmt.Registry) error

Validate validates this get sso validate o k body

type GetSsoValidateParams

type GetSsoValidateParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSsoValidateParams contains all the parameters to send to the API endpoint for the get sso validate operation typically these are written to a http.Request

func NewGetSsoValidateParams

func NewGetSsoValidateParams() *GetSsoValidateParams

NewGetSsoValidateParams creates a new GetSsoValidateParams object with the default values initialized.

func NewGetSsoValidateParamsWithContext

func NewGetSsoValidateParamsWithContext(ctx context.Context) *GetSsoValidateParams

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

func NewGetSsoValidateParamsWithHTTPClient

func NewGetSsoValidateParamsWithHTTPClient(client *http.Client) *GetSsoValidateParams

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

func NewGetSsoValidateParamsWithTimeout

func NewGetSsoValidateParamsWithTimeout(timeout time.Duration) *GetSsoValidateParams

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

func (*GetSsoValidateParams) SetContext

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

SetContext adds the context to the get sso validate params

func (*GetSsoValidateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sso validate params

func (*GetSsoValidateParams) SetTimeout

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

SetTimeout adds the timeout to the get sso validate params

func (*GetSsoValidateParams) WithContext

WithContext adds the context to the get sso validate params

func (*GetSsoValidateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get sso validate params

func (*GetSsoValidateParams) WithTimeout

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

WithTimeout adds the timeout to the get sso validate params

func (*GetSsoValidateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSsoValidateReader

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

GetSsoValidateReader is a Reader for the GetSsoValidate structure.

func (*GetSsoValidateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSsoValidateUnauthorized

type GetSsoValidateUnauthorized struct {
}

GetSsoValidateUnauthorized handles this case with default header values.

Authentication failed

func NewGetSsoValidateUnauthorized

func NewGetSsoValidateUnauthorized() *GetSsoValidateUnauthorized

NewGetSsoValidateUnauthorized creates a GetSsoValidateUnauthorized with default headers values

func (*GetSsoValidateUnauthorized) Error

type PostAuthStatusOK

type PostAuthStatusOK struct {
	Payload *models.AuthStatus
}

PostAuthStatusOK handles this case with default header values.

Authentication Status

func NewPostAuthStatusOK

func NewPostAuthStatusOK() *PostAuthStatusOK

NewPostAuthStatusOK creates a PostAuthStatusOK with default headers values

func (*PostAuthStatusOK) Error

func (o *PostAuthStatusOK) Error() string

func (*PostAuthStatusOK) GetPayload

func (o *PostAuthStatusOK) GetPayload() *models.AuthStatus

type PostAuthStatusParams

type PostAuthStatusParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostAuthStatusParams contains all the parameters to send to the API endpoint for the post iserver auth status operation typically these are written to a http.Request

func NewPostAuthStatusParams

func NewPostAuthStatusParams() *PostAuthStatusParams

NewPostAuthStatusParams creates a new PostAuthStatusParams object with the default values initialized.

func NewPostAuthStatusParamsWithContext

func NewPostAuthStatusParamsWithContext(ctx context.Context) *PostAuthStatusParams

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

func NewPostAuthStatusParamsWithHTTPClient

func NewPostAuthStatusParamsWithHTTPClient(client *http.Client) *PostAuthStatusParams

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

func NewPostAuthStatusParamsWithTimeout

func NewPostAuthStatusParamsWithTimeout(timeout time.Duration) *PostAuthStatusParams

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

func (*PostAuthStatusParams) SetContext

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

SetContext adds the context to the post iserver auth status params

func (*PostAuthStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post iserver auth status params

func (*PostAuthStatusParams) SetTimeout

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

SetTimeout adds the timeout to the post iserver auth status params

func (*PostAuthStatusParams) WithContext

WithContext adds the context to the post iserver auth status params

func (*PostAuthStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post iserver auth status params

func (*PostAuthStatusParams) WithTimeout

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

WithTimeout adds the timeout to the post iserver auth status params

func (*PostAuthStatusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAuthStatusReader

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

PostAuthStatusReader is a Reader for the PostAuthStatus structure.

func (*PostAuthStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostLogoutOK

type PostLogoutOK struct {
	Payload *PostLogoutOKBody
}

PostLogoutOK handles this case with default header values.

returned status indicates if user is logged in

func NewPostLogoutOK

func NewPostLogoutOK() *PostLogoutOK

NewPostLogoutOK creates a PostLogoutOK with default headers values

func (*PostLogoutOK) Error

func (o *PostLogoutOK) Error() string

func (*PostLogoutOK) GetPayload

func (o *PostLogoutOK) GetPayload() *PostLogoutOKBody

type PostLogoutOKBody

type PostLogoutOKBody struct {

	// true means username is still logged in, false means it is not
	Confirmed bool `json:"confirmed,omitempty"`
}

PostLogoutOKBody post logout o k body swagger:model PostLogoutOKBody

func (*PostLogoutOKBody) MarshalBinary

func (o *PostLogoutOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostLogoutOKBody) UnmarshalBinary

func (o *PostLogoutOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostLogoutOKBody) Validate

func (o *PostLogoutOKBody) Validate(formats strfmt.Registry) error

Validate validates this post logout o k body

type PostLogoutParams

type PostLogoutParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostLogoutParams contains all the parameters to send to the API endpoint for the post logout operation typically these are written to a http.Request

func NewPostLogoutParams

func NewPostLogoutParams() *PostLogoutParams

NewPostLogoutParams creates a new PostLogoutParams object with the default values initialized.

func NewPostLogoutParamsWithContext

func NewPostLogoutParamsWithContext(ctx context.Context) *PostLogoutParams

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

func NewPostLogoutParamsWithHTTPClient

func NewPostLogoutParamsWithHTTPClient(client *http.Client) *PostLogoutParams

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

func NewPostLogoutParamsWithTimeout

func NewPostLogoutParamsWithTimeout(timeout time.Duration) *PostLogoutParams

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

func (*PostLogoutParams) SetContext

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

SetContext adds the context to the post logout params

func (*PostLogoutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post logout params

func (*PostLogoutParams) SetTimeout

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

SetTimeout adds the timeout to the post logout params

func (*PostLogoutParams) WithContext

func (o *PostLogoutParams) WithContext(ctx context.Context) *PostLogoutParams

WithContext adds the context to the post logout params

func (*PostLogoutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post logout params

func (*PostLogoutParams) WithTimeout

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

WithTimeout adds the timeout to the post logout params

func (*PostLogoutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostLogoutReader

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

PostLogoutReader is a Reader for the PostLogout structure.

func (*PostLogoutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostReauthenticateOK

type PostReauthenticateOK struct {
	Payload *models.AuthStatus
}

PostReauthenticateOK handles this case with default header values.

Authentication Status

func NewPostReauthenticateOK

func NewPostReauthenticateOK() *PostReauthenticateOK

NewPostReauthenticateOK creates a PostReauthenticateOK with default headers values

func (*PostReauthenticateOK) Error

func (o *PostReauthenticateOK) Error() string

func (*PostReauthenticateOK) GetPayload

func (o *PostReauthenticateOK) GetPayload() *models.AuthStatus

type PostReauthenticateParams

type PostReauthenticateParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostReauthenticateParams contains all the parameters to send to the API endpoint for the post iserver reauthenticate operation typically these are written to a http.Request

func NewPostReauthenticateParams

func NewPostReauthenticateParams() *PostReauthenticateParams

NewPostReauthenticateParams creates a new PostReauthenticateParams object with the default values initialized.

func NewPostReauthenticateParamsWithContext

func NewPostReauthenticateParamsWithContext(ctx context.Context) *PostReauthenticateParams

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

func NewPostReauthenticateParamsWithHTTPClient

func NewPostReauthenticateParamsWithHTTPClient(client *http.Client) *PostReauthenticateParams

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

func NewPostReauthenticateParamsWithTimeout

func NewPostReauthenticateParamsWithTimeout(timeout time.Duration) *PostReauthenticateParams

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

func (*PostReauthenticateParams) SetContext

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

SetContext adds the context to the post iserver reauthenticate params

func (*PostReauthenticateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post iserver reauthenticate params

func (*PostReauthenticateParams) SetTimeout

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

SetTimeout adds the timeout to the post iserver reauthenticate params

func (*PostReauthenticateParams) WithContext

WithContext adds the context to the post iserver reauthenticate params

func (*PostReauthenticateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post iserver reauthenticate params

func (*PostReauthenticateParams) WithTimeout

WithTimeout adds the timeout to the post iserver reauthenticate params

func (*PostReauthenticateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostReauthenticateReader

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

PostReauthenticateReader is a Reader for the PostReauthenticate structure.

func (*PostReauthenticateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostTickleOK

type PostTickleOK struct {
}

PostTickleOK handles this case with default header values.

confirms session is open

func NewPostTickleOK

func NewPostTickleOK() *PostTickleOK

NewPostTickleOK creates a PostTickleOK with default headers values

func (*PostTickleOK) Error

func (o *PostTickleOK) Error() string

type PostTickleParams

type PostTickleParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostTickleParams contains all the parameters to send to the API endpoint for the post tickle operation typically these are written to a http.Request

func NewPostTickleParams

func NewPostTickleParams() *PostTickleParams

NewPostTickleParams creates a new PostTickleParams object with the default values initialized.

func NewPostTickleParamsWithContext

func NewPostTickleParamsWithContext(ctx context.Context) *PostTickleParams

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

func NewPostTickleParamsWithHTTPClient

func NewPostTickleParamsWithHTTPClient(client *http.Client) *PostTickleParams

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

func NewPostTickleParamsWithTimeout

func NewPostTickleParamsWithTimeout(timeout time.Duration) *PostTickleParams

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

func (*PostTickleParams) SetContext

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

SetContext adds the context to the post tickle params

func (*PostTickleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post tickle params

func (*PostTickleParams) SetTimeout

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

SetTimeout adds the timeout to the post tickle params

func (*PostTickleParams) WithContext

func (o *PostTickleParams) WithContext(ctx context.Context) *PostTickleParams

WithContext adds the context to the post tickle params

func (*PostTickleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post tickle params

func (*PostTickleParams) WithTimeout

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

WithTimeout adds the timeout to the post tickle params

func (*PostTickleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostTickleReader

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

PostTickleReader is a Reader for the PostTickle structure.

func (*PostTickleReader) ReadResponse

func (o *PostTickleReader) 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