Documentation ¶
Index ¶
- func BindSimple(builder *gateway.Builder, params *Simple, opts ...any)
- type CreateOption
- func WithAfterCreateBuilderCallback(callbacks RequestBuilderCallback) CreateOption
- func WithBeforeCreateBuilderCallback(callbacks RequestBuilderCallback) CreateOption
- func WithCreateMiddlewares(middlewares ...gateway.Handler) CreateOption
- func WithCreateResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) CreateOption
- func WithCreateResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) CreateOption
- type CreateOptions
- type DeleteOption
- func WithAfterDeleteBuilderCallback(callbacks RequestBuilderCallback) DeleteOption
- func WithBeforeDeleteBuilderCallback(callbacks RequestBuilderCallback) DeleteOption
- func WithDeleteMiddlewares(middlewares ...gateway.Handler) DeleteOption
- func WithDeleteResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) DeleteOption
- func WithDeleteResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) DeleteOption
- func WithDisableDelete() DeleteOption
- type DeleteOptions
- type GetByIDOption
- func WithAfterGetByIDBuilderCallback(callbacks RequestBuilderCallback) GetByIDOption
- func WithBeforeGetByIDBuilderCallback(callbacks RequestBuilderCallback) GetByIDOption
- func WithDisableGetByID() GetByIDOption
- func WithGetByIDMiddlewares(middlewares ...gateway.Handler) GetByIDOption
- func WithGetByIDResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) GetByIDOption
- func WithGetByIDResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) GetByIDOption
- type GetByIDOptions
- type GlobalOption
- type GlobalOptions
- type QueryOption
- func WithAfterQueryBuilderCallback(callbacks RequestBuilderCallback) QueryOption
- func WithBeforeQueryBuilderCallback(callbacks RequestBuilderCallback) QueryOption
- func WithDisableQuery() QueryOption
- func WithQueryMiddlewares(middlewares ...gateway.Handler) QueryOption
- func WithQueryResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) QueryOption
- func WithQueryResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) QueryOption
- type QueryOptions
- type RequestBuilderCallback
- type RequestBuilderErrorCallback
- type Simple
- type UpdateOption
- func WithAfterUpdateBuilderCallback(callbacks RequestBuilderCallback) UpdateOption
- func WithBeforeUpdateBuilderCallback(callbacks RequestBuilderCallback) UpdateOption
- func WithDisableUpdate() UpdateOption
- func WithUpdateMiddlewares(middlewares ...gateway.Handler) UpdateOption
- func WithUpdateResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) UpdateOption
- func WithUpdateResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) UpdateOption
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOption ¶
type CreateOption func(options *CreateOptions)
func WithAfterCreateBuilderCallback ¶
func WithAfterCreateBuilderCallback(callbacks RequestBuilderCallback) CreateOption
func WithBeforeCreateBuilderCallback ¶
func WithBeforeCreateBuilderCallback(callbacks RequestBuilderCallback) CreateOption
func WithCreateMiddlewares ¶
func WithCreateMiddlewares(middlewares ...gateway.Handler) CreateOption
func WithCreateResponseErrorCallback ¶ added in v1.3.1
func WithCreateResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) CreateOption
func WithCreateResponseSuccessCallback ¶ added in v1.1.11
func WithCreateResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) CreateOption
type CreateOptions ¶
type CreateOptions struct {
// contains filtered or unexported fields
}
type DeleteOption ¶
type DeleteOption func(options *DeleteOptions)
func WithAfterDeleteBuilderCallback ¶
func WithAfterDeleteBuilderCallback(callbacks RequestBuilderCallback) DeleteOption
func WithBeforeDeleteBuilderCallback ¶
func WithBeforeDeleteBuilderCallback(callbacks RequestBuilderCallback) DeleteOption
func WithDeleteMiddlewares ¶
func WithDeleteMiddlewares(middlewares ...gateway.Handler) DeleteOption
func WithDeleteResponseErrorCallback ¶ added in v1.3.1
func WithDeleteResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) DeleteOption
func WithDeleteResponseSuccessCallback ¶ added in v1.1.11
func WithDeleteResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) DeleteOption
func WithDisableDelete ¶
func WithDisableDelete() DeleteOption
type DeleteOptions ¶
type DeleteOptions struct {
// contains filtered or unexported fields
}
type GetByIDOption ¶
type GetByIDOption func(options *GetByIDOptions)
func WithAfterGetByIDBuilderCallback ¶
func WithAfterGetByIDBuilderCallback(callbacks RequestBuilderCallback) GetByIDOption
func WithBeforeGetByIDBuilderCallback ¶
func WithBeforeGetByIDBuilderCallback(callbacks RequestBuilderCallback) GetByIDOption
func WithDisableGetByID ¶
func WithDisableGetByID() GetByIDOption
func WithGetByIDMiddlewares ¶
func WithGetByIDMiddlewares(middlewares ...gateway.Handler) GetByIDOption
func WithGetByIDResponseErrorCallback ¶ added in v1.3.1
func WithGetByIDResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) GetByIDOption
func WithGetByIDResponseSuccessCallback ¶ added in v1.1.11
func WithGetByIDResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) GetByIDOption
type GetByIDOptions ¶
type GetByIDOptions struct {
// contains filtered or unexported fields
}
type GlobalOption ¶
type GlobalOption func(options *GlobalOptions)
func WithGlobalMiddlewares ¶
func WithGlobalMiddlewares(middlewares ...gateway.Handler) GlobalOption
type GlobalOptions ¶
type GlobalOptions struct {
// contains filtered or unexported fields
}
type QueryOption ¶
type QueryOption func(options *QueryOptions)
func WithAfterQueryBuilderCallback ¶
func WithAfterQueryBuilderCallback(callbacks RequestBuilderCallback) QueryOption
func WithBeforeQueryBuilderCallback ¶
func WithBeforeQueryBuilderCallback(callbacks RequestBuilderCallback) QueryOption
func WithDisableQuery ¶
func WithDisableQuery() QueryOption
func WithQueryMiddlewares ¶
func WithQueryMiddlewares(middlewares ...gateway.Handler) QueryOption
func WithQueryResponseErrorCallback ¶ added in v1.3.1
func WithQueryResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) QueryOption
func WithQueryResponseSuccessCallback ¶ added in v1.1.11
func WithQueryResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) QueryOption
type QueryOptions ¶
type QueryOptions struct {
// contains filtered or unexported fields
}
type RequestBuilderCallback ¶ added in v0.10.5
type RequestBuilderErrorCallback ¶ added in v1.3.1
type Simple ¶
type Simple struct { // 除去后缀的服务URL,如http://localhost:8080/example/api/v1 ServiceVersionedUrl string // 服务缩写 ServiceShortName string // 领域名称 DomainCamelName string // contains filtered or unexported fields }
type UpdateOption ¶
type UpdateOption func(options *UpdateOptions)
func WithAfterUpdateBuilderCallback ¶
func WithAfterUpdateBuilderCallback(callbacks RequestBuilderCallback) UpdateOption
func WithBeforeUpdateBuilderCallback ¶
func WithBeforeUpdateBuilderCallback(callbacks RequestBuilderCallback) UpdateOption
func WithDisableUpdate ¶
func WithDisableUpdate() UpdateOption
func WithUpdateMiddlewares ¶
func WithUpdateMiddlewares(middlewares ...gateway.Handler) UpdateOption
func WithUpdateResponseErrorCallback ¶ added in v1.3.1
func WithUpdateResponseErrorCallback(responseErrorCallback RequestBuilderErrorCallback) UpdateOption
func WithUpdateResponseSuccessCallback ¶ added in v1.1.11
func WithUpdateResponseSuccessCallback(responseSuccessCallback RequestBuilderCallback) UpdateOption
type UpdateOptions ¶
type UpdateOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.