factory

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint

func Endpoint(opts ...EndpointOption) entities.Endpoint

func EndpointP

func EndpointP(opts ...EndpointOption) *entities.Endpoint

func EndpointWS

func EndpointWS(wid string, opts ...EndpointOption) entities.Endpoint

func Event

func Event(opts ...EventOption) entities.Event

func EventP

func EventP(opts ...EventOption) *entities.Event

func EventWS

func EventWS(wid string, opts ...EventOption) entities.Event

func Plugin

func Plugin(opts ...PluginOption) entities.Plugin

func PluginP added in v0.6.0

func PluginP(opts ...PluginOption) *entities.Plugin

func PluginWS

func PluginWS(wid string, opts ...PluginOption) entities.Plugin

func SetDefault added in v0.8.0

func SetDefault(schema *openapi3.Schema, obj interface{})

func Source

func Source(opts ...SourceOption) entities.Source

func SourceP

func SourceP(opts ...SourceOption) *entities.Source

func SourceWS

func SourceWS(wid string, opts ...SourceOption) entities.Source

func Workspace added in v0.5.0

func Workspace(name string) *entities.Workspace

Types

type EndpointOption

type EndpointOption func(*entities.Endpoint)

func WithEndpointID

func WithEndpointID(id string) EndpointOption

func WithEndpointMetadata added in v0.8.0

func WithEndpointMetadata(metadata map[string]string) EndpointOption

func WithEndpointName

func WithEndpointName(name string) EndpointOption

type EventOption

type EventOption func(*entities.Event)

type PluginOption

type PluginOption func(*entities.Plugin)

func WithPluginConfig

func WithPluginConfig(config interface{}) PluginOption

func WithPluginConfigJSON

func WithPluginConfigJSON(json string) PluginOption

func WithPluginEndpointID

func WithPluginEndpointID(endpointID string) PluginOption

func WithPluginID

func WithPluginID(id string) PluginOption

func WithPluginMetadata added in v0.8.0

func WithPluginMetadata(metadata map[string]string) PluginOption

func WithPluginName

func WithPluginName(name string) PluginOption

func WithPluginSourceID added in v0.7.0

func WithPluginSourceID(sourceID string) PluginOption

type SourceOption

type SourceOption func(*entities.Source)

func WithSourceAsync

func WithSourceAsync(async bool) SourceOption

func WithSourceID

func WithSourceID(id string) SourceOption

func WithSourceMetadata added in v0.8.0

func WithSourceMetadata(metadata map[string]string) SourceOption

func WithSourcePath added in v0.7.0

func WithSourcePath(path string) SourceOption

func WithSourceResponse added in v0.8.0

func WithSourceResponse(response *entities.CustomResponse) SourceOption

Jump to

Keyboard shortcuts

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