api

package
v6.49.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestServiceCLICommand added in v6.18.0

func NewTestServiceCLICommand() *cobra.Command

func NewTestServiceCLICommandWithClientProvider added in v6.18.0

func NewTestServiceCLICommandWithClientProvider(clientProvider CLITestServiceClientProvider) *cobra.Command

func RegisterRoutesTestService

func RegisterRoutesTestService(router wrouter.Router, impl TestService, routerParams ...wrouter.RouteParam) error

RegisterRoutesTestService registers handlers for the TestService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.

Types

type BinaryAlias

type BinaryAlias []byte

func (BinaryAlias) MarshalText

func (a BinaryAlias) MarshalText() ([]byte, error)

func (BinaryAlias) MarshalYAML

func (a BinaryAlias) MarshalYAML() (interface{}, error)

func (BinaryAlias) String

func (a BinaryAlias) String() string

func (*BinaryAlias) UnmarshalText

func (a *BinaryAlias) UnmarshalText(data []byte) error

func (*BinaryAlias) UnmarshalYAML

func (a *BinaryAlias) UnmarshalYAML(unmarshal func(interface{}) error) error

type BinaryAliasAlias

type BinaryAliasAlias struct {
	Value *BinaryAlias
}

func (BinaryAliasAlias) MarshalJSON added in v6.16.0

func (a BinaryAliasAlias) MarshalJSON() ([]byte, error)

func (BinaryAliasAlias) MarshalText

func (a BinaryAliasAlias) MarshalText() ([]byte, error)

func (BinaryAliasAlias) MarshalYAML

func (a BinaryAliasAlias) MarshalYAML() (interface{}, error)

func (*BinaryAliasAlias) UnmarshalText

func (a *BinaryAliasAlias) UnmarshalText(data []byte) error

func (*BinaryAliasAlias) UnmarshalYAML

func (a *BinaryAliasAlias) UnmarshalYAML(unmarshal func(interface{}) error) error

type BinaryAliasOptional

type BinaryAliasOptional struct {
	Value *[]byte
}

func (BinaryAliasOptional) MarshalJSON added in v6.16.0

func (a BinaryAliasOptional) MarshalJSON() ([]byte, error)

func (BinaryAliasOptional) MarshalText

func (a BinaryAliasOptional) MarshalText() ([]byte, error)

func (BinaryAliasOptional) MarshalYAML

func (a BinaryAliasOptional) MarshalYAML() (interface{}, error)

func (*BinaryAliasOptional) UnmarshalText

func (a *BinaryAliasOptional) UnmarshalText(data []byte) error

func (*BinaryAliasOptional) UnmarshalYAML

func (a *BinaryAliasOptional) UnmarshalYAML(unmarshal func(interface{}) error) error

type CLIConfig added in v6.18.0

type CLIConfig struct {
	Client httpclient.ClientConfig `yaml:",inline"`
}

type CLITestServiceClientProvider added in v6.18.0

type CLITestServiceClientProvider interface {
	Get(ctx context.Context, flags *pflag.FlagSet) (TestServiceClient, error)
}

func NewDefaultCLITestServiceClientProvider added in v6.18.0

func NewDefaultCLITestServiceClientProvider() CLITestServiceClientProvider

type CustomObject

type CustomObject struct {
	Data        []byte       `json:"data"`
	BinaryAlias *BinaryAlias `json:"binaryAlias"`
}

func (CustomObject) MarshalYAML

func (o CustomObject) MarshalYAML() (interface{}, error)

func (*CustomObject) UnmarshalYAML

func (o *CustomObject) UnmarshalYAML(unmarshal func(interface{}) error) error

type TestService

type TestService interface {
	BinaryAlias(ctx context.Context, bodyArg io.ReadCloser) (io.ReadCloser, error)
	BinaryAliasOptional(ctx context.Context) (*io.ReadCloser, error)
	BinaryAliasAlias(ctx context.Context, bodyArg *io.ReadCloser) (*io.ReadCloser, error)
	Binary(ctx context.Context, bodyArg io.ReadCloser) (io.ReadCloser, error)
	BinaryOptional(ctx context.Context) (*io.ReadCloser, error)
	BinaryOptionalAlias(ctx context.Context, bodyArg *io.ReadCloser) (*io.ReadCloser, error)
	BinaryList(ctx context.Context, bodyArg [][]byte) ([][]byte, error)
	Bytes(ctx context.Context, bodyArg CustomObject) (CustomObject, error)
}

type TestServiceCLICommand added in v6.18.0

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

type TestServiceClient

type TestServiceClient interface {
	BinaryAlias(ctx context.Context, bodyArg func() io.ReadCloser) (io.ReadCloser, error)
	BinaryAliasOptional(ctx context.Context) (*io.ReadCloser, error)
	BinaryAliasAlias(ctx context.Context, bodyArg func() io.ReadCloser) (*io.ReadCloser, error)
	Binary(ctx context.Context, bodyArg func() io.ReadCloser) (io.ReadCloser, error)
	BinaryOptional(ctx context.Context) (*io.ReadCloser, error)
	BinaryOptionalAlias(ctx context.Context, bodyArg func() io.ReadCloser) (*io.ReadCloser, error)
	BinaryList(ctx context.Context, bodyArg [][]byte) ([][]byte, error)
	Bytes(ctx context.Context, bodyArg CustomObject) (CustomObject, error)
}

func NewTestServiceClient

func NewTestServiceClient(client httpclient.Client) TestServiceClient

Jump to

Keyboard shortcuts

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