journal

package
v0.0.0-...-2439cfa Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationXML

func WithAcceptApplicationXML(r *runtime.ClientOperation)

WithAcceptApplicationXML sets the Accept header to "application/xml".

func WithAcceptTextJSON

func WithAcceptTextJSON(r *runtime.ClientOperation)

WithAcceptTextJSON sets the Accept header to "text/json".

func WithAcceptTextXML

func WithAcceptTextXML(r *runtime.ClientOperation)

WithAcceptTextXML sets the Accept header to "text/xml".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationXML

func WithContentTypeApplicationXML(r *runtime.ClientOperation)

WithContentTypeApplicationXML sets the Content-Type header to "application/xml".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

func WithContentTypeTextJSON

func WithContentTypeTextJSON(r *runtime.ClientOperation)

WithContentTypeTextJSON sets the Content-Type header to "text/json".

func WithContentTypeTextXML

func WithContentTypeTextXML(r *runtime.ClientOperation)

WithContentTypeTextXML sets the Content-Type header to "text/xml".

Types

type Client

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

Client for journal API

func (*Client) JournalPostGLAccount

func (a *Client) JournalPostGLAccount(params *JournalPostGLAccountParams, opts ...ClientOption) (*JournalPostGLAccountOK, error)

JournalPostGLAccount journal post g l account API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	JournalPostGLAccount(params *JournalPostGLAccountParams, opts ...ClientOption) (*JournalPostGLAccountOK, 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 journal API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new journal API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new journal API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type JournalPostGLAccountOK

type JournalPostGLAccountOK struct {
	Payload int32
}

JournalPostGLAccountOK describes a response with status code 200, with default header values.

Import a list of journals

func NewJournalPostGLAccountOK

func NewJournalPostGLAccountOK() *JournalPostGLAccountOK

NewJournalPostGLAccountOK creates a JournalPostGLAccountOK with default headers values

func (*JournalPostGLAccountOK) Code

func (o *JournalPostGLAccountOK) Code() int

Code gets the status code for the journal post g l account o k response

func (*JournalPostGLAccountOK) Error

func (o *JournalPostGLAccountOK) Error() string

func (*JournalPostGLAccountOK) GetPayload

func (o *JournalPostGLAccountOK) GetPayload() int32

func (*JournalPostGLAccountOK) IsClientError

func (o *JournalPostGLAccountOK) IsClientError() bool

IsClientError returns true when this journal post g l account o k response has a 4xx status code

func (*JournalPostGLAccountOK) IsCode

func (o *JournalPostGLAccountOK) IsCode(code int) bool

IsCode returns true when this journal post g l account o k response a status code equal to that given

func (*JournalPostGLAccountOK) IsRedirect

func (o *JournalPostGLAccountOK) IsRedirect() bool

IsRedirect returns true when this journal post g l account o k response has a 3xx status code

func (*JournalPostGLAccountOK) IsServerError

func (o *JournalPostGLAccountOK) IsServerError() bool

IsServerError returns true when this journal post g l account o k response has a 5xx status code

func (*JournalPostGLAccountOK) IsSuccess

func (o *JournalPostGLAccountOK) IsSuccess() bool

IsSuccess returns true when this journal post g l account o k response has a 2xx status code

func (*JournalPostGLAccountOK) String

func (o *JournalPostGLAccountOK) String() string

type JournalPostGLAccountParams

type JournalPostGLAccountParams struct {

	// Journals.
	Journals []*model.Journal

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

JournalPostGLAccountParams contains all the parameters to send to the API endpoint

for the journal post g l account operation.

Typically these are written to a http.Request.

func NewJournalPostGLAccountParams

func NewJournalPostGLAccountParams() *JournalPostGLAccountParams

NewJournalPostGLAccountParams creates a new JournalPostGLAccountParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewJournalPostGLAccountParamsWithContext

func NewJournalPostGLAccountParamsWithContext(ctx context.Context) *JournalPostGLAccountParams

NewJournalPostGLAccountParamsWithContext creates a new JournalPostGLAccountParams object with the ability to set a context for a request.

func NewJournalPostGLAccountParamsWithHTTPClient

func NewJournalPostGLAccountParamsWithHTTPClient(client *http.Client) *JournalPostGLAccountParams

NewJournalPostGLAccountParamsWithHTTPClient creates a new JournalPostGLAccountParams object with the ability to set a custom HTTPClient for a request.

func NewJournalPostGLAccountParamsWithTimeout

func NewJournalPostGLAccountParamsWithTimeout(timeout time.Duration) *JournalPostGLAccountParams

NewJournalPostGLAccountParamsWithTimeout creates a new JournalPostGLAccountParams object with the ability to set a timeout on a request.

func (*JournalPostGLAccountParams) SetContext

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

SetContext adds the context to the journal post g l account params

func (*JournalPostGLAccountParams) SetDefaults

func (o *JournalPostGLAccountParams) SetDefaults()

SetDefaults hydrates default values in the journal post g l account params (not the query body).

All values with no default are reset to their zero value.

func (*JournalPostGLAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the journal post g l account params

func (*JournalPostGLAccountParams) SetJournals

func (o *JournalPostGLAccountParams) SetJournals(journals []*model.Journal)

SetJournals adds the journals to the journal post g l account params

func (*JournalPostGLAccountParams) SetTimeout

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

SetTimeout adds the timeout to the journal post g l account params

func (*JournalPostGLAccountParams) WithContext

WithContext adds the context to the journal post g l account params

func (*JournalPostGLAccountParams) WithDefaults

WithDefaults hydrates default values in the journal post g l account params (not the query body).

All values with no default are reset to their zero value.

func (*JournalPostGLAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the journal post g l account params

func (*JournalPostGLAccountParams) WithJournals

WithJournals adds the journals to the journal post g l account params

func (*JournalPostGLAccountParams) WithTimeout

WithTimeout adds the timeout to the journal post g l account params

func (*JournalPostGLAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type JournalPostGLAccountReader

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

JournalPostGLAccountReader is a Reader for the JournalPostGLAccount structure.

func (*JournalPostGLAccountReader) ReadResponse

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