server

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoDeserializeConfirmServiceClient

type AutoDeserializeConfirmServiceClient interface {
	// Send the response received for positive test cases here to verify that it has been serialized and deserialized properly.
	Confirm(ctx context.Context, endpointArg EndpointName, indexArg int, bodyArg interface{}) error
}

func NewAutoDeserializeConfirmServiceClient

func NewAutoDeserializeConfirmServiceClient(client httpclient.Client) AutoDeserializeConfirmServiceClient

type AutoDeserializeServiceClient

type AutoDeserializeServiceClient interface {
	ReceiveBearerTokenExample(ctx context.Context, indexArg int) (types.BearerTokenExample, error)
	ReceiveBooleanExample(ctx context.Context, indexArg int) (types.BooleanExample, error)
	ReceiveDateTimeExample(ctx context.Context, indexArg int) (types.DateTimeExample, error)
	ReceiveDoubleExample(ctx context.Context, indexArg int) (types.DoubleExample, error)
	ReceiveIntegerExample(ctx context.Context, indexArg int) (types.IntegerExample, error)
	ReceiveRidExample(ctx context.Context, indexArg int) (types.RidExample, error)
	ReceiveSafeLongExample(ctx context.Context, indexArg int) (types.SafeLongExample, error)
	ReceiveStringExample(ctx context.Context, indexArg int) (types.StringExample, error)
	ReceiveUuidExample(ctx context.Context, indexArg int) (types.UuidExample, error)
	ReceiveAnyExample(ctx context.Context, indexArg int) (types.AnyExample, error)
	ReceiveListExample(ctx context.Context, indexArg int) (types.ListExample, error)
	ReceiveSetStringExample(ctx context.Context, indexArg int) (types.SetStringExample, error)
	ReceiveSetDoubleExample(ctx context.Context, indexArg int) (types.SetDoubleExample, error)
	ReceiveMapExample(ctx context.Context, indexArg int) (types.MapExample, error)
	ReceiveOptionalExample(ctx context.Context, indexArg int) (types.OptionalExample, error)
	ReceiveOptionalBooleanExample(ctx context.Context, indexArg int) (types.OptionalBooleanExample, error)
	ReceiveOptionalIntegerExample(ctx context.Context, indexArg int) (types.OptionalIntegerExample, error)
	ReceiveLongFieldNameOptionalExample(ctx context.Context, indexArg int) (types.LongFieldNameOptionalExample, error)
	ReceiveRawOptionalExample(ctx context.Context, indexArg int) (types.RawOptionalExample, error)
	ReceiveStringAliasExample(ctx context.Context, indexArg int) (types.StringAliasExample, error)
	ReceiveDoubleAliasExample(ctx context.Context, indexArg int) (types.DoubleAliasExample, error)
	ReceiveIntegerAliasExample(ctx context.Context, indexArg int) (types.IntegerAliasExample, error)
	ReceiveBooleanAliasExample(ctx context.Context, indexArg int) (types.BooleanAliasExample, error)
	ReceiveSafeLongAliasExample(ctx context.Context, indexArg int) (types.SafeLongAliasExample, error)
	ReceiveRidAliasExample(ctx context.Context, indexArg int) (types.RidAliasExample, error)
	ReceiveBearerTokenAliasExample(ctx context.Context, indexArg int) (types.BearerTokenAliasExample, error)
	ReceiveUuidAliasExample(ctx context.Context, indexArg int) (types.UuidAliasExample, error)
	ReceiveReferenceAliasExample(ctx context.Context, indexArg int) (types.ReferenceAliasExample, error)
	ReceiveDateTimeAliasExample(ctx context.Context, indexArg int) (types.DateTimeAliasExample, error)
	ReceiveKebabCaseObjectExample(ctx context.Context, indexArg int) (types.KebabCaseObjectExample, error)
	ReceiveSnakeCaseObjectExample(ctx context.Context, indexArg int) (types.SnakeCaseObjectExample, error)
	ReceiveOptionalBearerTokenAliasExample(ctx context.Context, indexArg int) (types.OptionalBearerTokenAliasExample, error)
	ReceiveOptionalBinaryAliasExample(ctx context.Context, indexArg int) (types.OptionalBinaryAliasExample, error)
	ReceiveOptionalBooleanAliasExample(ctx context.Context, indexArg int) (types.OptionalBooleanAliasExample, error)
	ReceiveOptionalDateTimeAliasExample(ctx context.Context, indexArg int) (types.OptionalDateTimeAliasExample, error)
	ReceiveOptionalDoubleAliasExample(ctx context.Context, indexArg int) (types.OptionalDoubleAliasExample, error)
	ReceiveOptionalIntegerAliasExample(ctx context.Context, indexArg int) (types.OptionalIntegerAliasExample, error)
	ReceiveOptionalRidAliasExample(ctx context.Context, indexArg int) (types.OptionalRidAliasExample, error)
	ReceiveOptionalSafeLongAliasExample(ctx context.Context, indexArg int) (types.OptionalSafeLongAliasExample, error)
	ReceiveOptionalStringAliasExample(ctx context.Context, indexArg int) (types.OptionalStringAliasExample, error)
	ReceiveOptionalUuidAliasExample(ctx context.Context, indexArg int) (types.OptionalUuidAliasExample, error)
	ReceiveOptionalAnyAliasExample(ctx context.Context, indexArg int) (types.OptionalAnyAliasExample, error)
	ReceiveListBearerTokenAliasExample(ctx context.Context, indexArg int) (types.ListBearerTokenAliasExample, error)
	ReceiveListBinaryAliasExample(ctx context.Context, indexArg int) (types.ListBinaryAliasExample, error)
	ReceiveListBooleanAliasExample(ctx context.Context, indexArg int) (types.ListBooleanAliasExample, error)
	ReceiveListDateTimeAliasExample(ctx context.Context, indexArg int) (types.ListDateTimeAliasExample, error)
	ReceiveListDoubleAliasExample(ctx context.Context, indexArg int) (types.ListDoubleAliasExample, error)
	ReceiveListIntegerAliasExample(ctx context.Context, indexArg int) (types.ListIntegerAliasExample, error)
	ReceiveListRidAliasExample(ctx context.Context, indexArg int) (types.ListRidAliasExample, error)
	ReceiveListSafeLongAliasExample(ctx context.Context, indexArg int) (types.ListSafeLongAliasExample, error)
	ReceiveListStringAliasExample(ctx context.Context, indexArg int) (types.ListStringAliasExample, error)
	ReceiveListUuidAliasExample(ctx context.Context, indexArg int) (types.ListUuidAliasExample, error)
	ReceiveListAnyAliasExample(ctx context.Context, indexArg int) (types.ListAnyAliasExample, error)
	ReceiveSetBearerTokenAliasExample(ctx context.Context, indexArg int) (types.SetBearerTokenAliasExample, error)
	ReceiveSetBinaryAliasExample(ctx context.Context, indexArg int) (types.SetBinaryAliasExample, error)
	ReceiveSetBooleanAliasExample(ctx context.Context, indexArg int) (types.SetBooleanAliasExample, error)
	ReceiveSetDateTimeAliasExample(ctx context.Context, indexArg int) (types.SetDateTimeAliasExample, error)
	ReceiveSetDoubleAliasExample(ctx context.Context, indexArg int) (types.SetDoubleAliasExample, error)
	ReceiveSetIntegerAliasExample(ctx context.Context, indexArg int) (types.SetIntegerAliasExample, error)
	ReceiveSetRidAliasExample(ctx context.Context, indexArg int) (types.SetRidAliasExample, error)
	ReceiveSetSafeLongAliasExample(ctx context.Context, indexArg int) (types.SetSafeLongAliasExample, error)
	ReceiveSetStringAliasExample(ctx context.Context, indexArg int) (types.SetStringAliasExample, error)
	ReceiveSetUuidAliasExample(ctx context.Context, indexArg int) (types.SetUuidAliasExample, error)
	ReceiveSetAnyAliasExample(ctx context.Context, indexArg int) (types.SetAnyAliasExample, error)
	ReceiveMapBearerTokenAliasExample(ctx context.Context, indexArg int) (types.MapBearerTokenAliasExample, error)
	ReceiveMapBinaryAliasExample(ctx context.Context, indexArg int) (types.MapBinaryAliasExample, error)
	ReceiveMapBooleanAliasExample(ctx context.Context, indexArg int) (types.MapBooleanAliasExample, error)
	ReceiveMapDateTimeAliasExample(ctx context.Context, indexArg int) (types.MapDateTimeAliasExample, error)
	ReceiveMapDoubleAliasExample(ctx context.Context, indexArg int) (types.MapDoubleAliasExample, error)
	ReceiveMapIntegerAliasExample(ctx context.Context, indexArg int) (types.MapIntegerAliasExample, error)
	ReceiveMapRidAliasExample(ctx context.Context, indexArg int) (types.MapRidAliasExample, error)
	ReceiveMapSafeLongAliasExample(ctx context.Context, indexArg int) (types.MapSafeLongAliasExample, error)
	ReceiveMapStringAliasExample(ctx context.Context, indexArg int) (types.MapStringAliasExample, error)
	ReceiveMapUuidAliasExample(ctx context.Context, indexArg int) (types.MapUuidAliasExample, error)
	ReceiveMapEnumExampleAlias(ctx context.Context, indexArg int) (types.MapEnumExampleAlias, error)
}

func NewAutoDeserializeServiceClient

func NewAutoDeserializeServiceClient(client httpclient.Client) AutoDeserializeServiceClient

type ClientTestCases

type ClientTestCases struct {
	AutoDeserialize         map[EndpointName]PositiveAndNegativeTestCases `json:"autoDeserialize"`
	SingleHeaderService     map[EndpointName][]string                     `json:"singleHeaderService"`
	SinglePathParamService  map[EndpointName][]string                     `json:"singlePathParamService"`
	SingleQueryParamService map[EndpointName][]string                     `json:"singleQueryParamService"`
}

func (ClientTestCases) MarshalJSON

func (o ClientTestCases) MarshalJSON() ([]byte, error)

func (ClientTestCases) MarshalYAML

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

func (*ClientTestCases) UnmarshalJSON

func (o *ClientTestCases) UnmarshalJSON(data []byte) error

func (*ClientTestCases) UnmarshalYAML

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

type EndpointName

type EndpointName string

type IgnoredClientTestCases

type IgnoredClientTestCases struct {
	AutoDeserialize         map[EndpointName][]string `json:"autoDeserialize"`
	SingleHeaderService     map[EndpointName][]string `json:"singleHeaderService"`
	SinglePathParamService  map[EndpointName][]string `json:"singlePathParamService"`
	SingleQueryParamService map[EndpointName][]string `json:"singleQueryParamService"`
}

func (IgnoredClientTestCases) MarshalJSON

func (o IgnoredClientTestCases) MarshalJSON() ([]byte, error)

func (IgnoredClientTestCases) MarshalYAML

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

func (*IgnoredClientTestCases) UnmarshalJSON

func (o *IgnoredClientTestCases) UnmarshalJSON(data []byte) error

func (*IgnoredClientTestCases) UnmarshalYAML

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

type IgnoredTestCases

type IgnoredTestCases struct {
	Client IgnoredClientTestCases `json:"client"`
}

func (IgnoredTestCases) MarshalYAML

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

func (*IgnoredTestCases) UnmarshalYAML

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

type PositiveAndNegativeTestCases

type PositiveAndNegativeTestCases struct {
	Positive []string `json:"positive"`
	Negative []string `json:"negative"`
}

func (PositiveAndNegativeTestCases) MarshalJSON

func (o PositiveAndNegativeTestCases) MarshalJSON() ([]byte, error)

func (PositiveAndNegativeTestCases) MarshalYAML

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

func (*PositiveAndNegativeTestCases) UnmarshalJSON

func (o *PositiveAndNegativeTestCases) UnmarshalJSON(data []byte) error

func (*PositiveAndNegativeTestCases) UnmarshalYAML

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

type SingleHeaderServiceClient

type SingleHeaderServiceClient interface {
	HeaderBearertoken(ctx context.Context, indexArg int, headerArg bearertoken.Token) error
	HeaderBoolean(ctx context.Context, indexArg int, headerArg bool) error
	HeaderDatetime(ctx context.Context, indexArg int, headerArg datetime.DateTime) error
	HeaderDouble(ctx context.Context, indexArg int, headerArg float64) error
	HeaderInteger(ctx context.Context, indexArg int, headerArg int) error
	HeaderRid(ctx context.Context, indexArg int, headerArg rid.ResourceIdentifier) error
	HeaderSafelong(ctx context.Context, indexArg int, headerArg safelong.SafeLong) error
	HeaderString(ctx context.Context, indexArg int, headerArg string) error
	HeaderUuid(ctx context.Context, indexArg int, headerArg uuid.UUID) error
	HeaderOptionalOfString(ctx context.Context, indexArg int, headerArg *string) error
	HeaderAliasString(ctx context.Context, indexArg int, headerArg types.AliasString) error
}

func NewSingleHeaderServiceClient

func NewSingleHeaderServiceClient(client httpclient.Client) SingleHeaderServiceClient

type SinglePathParamServiceClient

type SinglePathParamServiceClient interface {
	PathParamBoolean(ctx context.Context, indexArg int, paramArg bool) error
	PathParamDatetime(ctx context.Context, indexArg int, paramArg datetime.DateTime) error
	PathParamDouble(ctx context.Context, indexArg int, paramArg float64) error
	PathParamInteger(ctx context.Context, indexArg int, paramArg int) error
	PathParamRid(ctx context.Context, indexArg int, paramArg rid.ResourceIdentifier) error
	PathParamSafelong(ctx context.Context, indexArg int, paramArg safelong.SafeLong) error
	PathParamString(ctx context.Context, indexArg int, paramArg string) error
	PathParamUuid(ctx context.Context, indexArg int, paramArg uuid.UUID) error
	PathParamAliasString(ctx context.Context, indexArg int, paramArg types.AliasString) error
}

func NewSinglePathParamServiceClient

func NewSinglePathParamServiceClient(client httpclient.Client) SinglePathParamServiceClient

type SingleQueryParamServiceClient

type SingleQueryParamServiceClient interface {
	QueryParamBoolean(ctx context.Context, indexArg int, someQueryArg bool) error
	QueryParamDouble(ctx context.Context, indexArg int, someQueryArg float64) error
	QueryParamInteger(ctx context.Context, indexArg int, someQueryArg int) error
	QueryParamRid(ctx context.Context, indexArg int, someQueryArg rid.ResourceIdentifier) error
	QueryParamSafelong(ctx context.Context, indexArg int, someQueryArg safelong.SafeLong) error
	QueryParamString(ctx context.Context, indexArg int, someQueryArg string) error
	QueryParamUuid(ctx context.Context, indexArg int, someQueryArg uuid.UUID) error
	QueryParamOptionalOfString(ctx context.Context, indexArg int, someQueryArg *string) error
	QueryParamAliasString(ctx context.Context, indexArg int, someQueryArg types.AliasString) error
}

func NewSingleQueryParamServiceClient

func NewSingleQueryParamServiceClient(client httpclient.Client) SingleQueryParamServiceClient

type TestCases

type TestCases struct {
	Client ClientTestCases `json:"client"`
}

func (TestCases) MarshalYAML

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

func (*TestCases) UnmarshalYAML

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

Jump to

Keyboard shortcuts

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