api

package
v6.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutesTestService

func RegisterRoutesTestService(router wrouter.Router, impl TestService) 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) 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) 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 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 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