Documentation ¶
Index ¶
- func BindSimple(builder *gateway.Builder, params *Simple, opts ...any)
- type BuilderCallback
- type CreateOption
- type CreateOptions
- type DeleteOption
- type DeleteOptions
- type GetByIDOption
- type GetByIDOptions
- type GlobalOption
- type GlobalOptions
- type QueryOption
- type QueryOptions
- type Simple
- type UpdateOption
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuilderCallback ¶
type CreateOption ¶
type CreateOption func(options *CreateOptions)
func WithAfterCreateBuilderCallback ¶
func WithAfterCreateBuilderCallback(callbacks BuilderCallback) CreateOption
func WithBeforeCreateBuilderCallback ¶
func WithBeforeCreateBuilderCallback(callbacks BuilderCallback) CreateOption
func WithCreateMiddlewares ¶
func WithCreateMiddlewares(middlewares []api.Handler) CreateOption
type CreateOptions ¶
type CreateOptions struct {
// contains filtered or unexported fields
}
type DeleteOption ¶
type DeleteOption func(options *DeleteOptions)
func WithAfterDeleteBuilderCallback ¶
func WithAfterDeleteBuilderCallback(callbacks BuilderCallback) DeleteOption
func WithBeforeDeleteBuilderCallback ¶
func WithBeforeDeleteBuilderCallback(callbacks BuilderCallback) DeleteOption
func WithDeleteMiddlewares ¶
func WithDeleteMiddlewares(middlewares []api.Handler) 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 BuilderCallback) GetByIDOption
func WithBeforeGetByIDBuilderCallback ¶
func WithBeforeGetByIDBuilderCallback(callbacks BuilderCallback) GetByIDOption
func WithDisableGetByID ¶
func WithDisableGetByID() GetByIDOption
func WithGetByIDMiddlewares ¶
func WithGetByIDMiddlewares(middlewares []api.Handler) GetByIDOption
type GetByIDOptions ¶
type GetByIDOptions struct {
// contains filtered or unexported fields
}
type GlobalOption ¶
type GlobalOption func(options *GlobalOptions)
func WithGlobalMiddlewares ¶
func WithGlobalMiddlewares(middlewares ...api.Handler) GlobalOption
type GlobalOptions ¶
type GlobalOptions struct {
// contains filtered or unexported fields
}
type QueryOption ¶
type QueryOption func(options *QueryOptions)
func WithAfterQueryBuilderCallback ¶
func WithAfterQueryBuilderCallback(callbacks BuilderCallback) QueryOption
func WithBeforeQueryBuilderCallback ¶
func WithBeforeQueryBuilderCallback(callbacks BuilderCallback) QueryOption
func WithDisableQuery ¶
func WithDisableQuery() QueryOption
func WithQueryMiddlewares ¶
func WithQueryMiddlewares(middlewares []api.Handler) QueryOption
type QueryOptions ¶
type QueryOptions struct {
// contains filtered or unexported fields
}
type Simple ¶
type Simple struct { // 除去后缀的服务URL,如http://localhost:8080/example/api/v1 ServiceVersionedUrl string // 领域名称 DomainCamelName string // contains filtered or unexported fields }
type UpdateOption ¶
type UpdateOption func(options *UpdateOptions)
func WithAfterUpdateBuilderCallback ¶
func WithAfterUpdateBuilderCallback(callbacks BuilderCallback) UpdateOption
func WithBeforeUpdateBuilderCallback ¶
func WithBeforeUpdateBuilderCallback(callbacks BuilderCallback) UpdateOption
func WithDisableUpdate ¶
func WithDisableUpdate() UpdateOption
func WithUpdateMiddlewares ¶
func WithUpdateMiddlewares(middlewares []api.Handler) UpdateOption
type UpdateOptions ¶
type UpdateOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.