test

package
v0.0.0-...-b729584 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringServiceClientSpec

func StringServiceClientSpec(t *testing.T, svc *StringServiceClient)

Types

type EchoService

type EchoService struct {
}

func (*EchoService) Echo

func (s *EchoService) Echo(v interface{}) (interface{}, error)

func (*EchoService) EchoTime

func (s *EchoService) EchoTime(v interface{}) (interface{}, error)

func (EchoService) ServiceCoordinate

func (EchoService) ServiceCoordinate() srpc.ServiceCoordinate

type EchoServiceClient

type EchoServiceClient struct {
	Echo     func(v interface{}) (interface{}, error)
	EchoTime func(v time.Time) (time.Time, error)
}

func (EchoServiceClient) ServiceCoordinate

func (EchoServiceClient) ServiceCoordinate() srpc.ServiceCoordinate

type StringPart

type StringPart struct {
	A   string
	B   string
	Sep string `json:"sep,omitempty"`
}

type StringService

type StringService struct {
}

func (*StringService) Join

func (*StringService) Join(r StringPart) (string, error)

func (*StringService) JoinPtr

func (s *StringService) JoinPtr(ctx context.Context, r *StringPart, v *string) error

func (*StringService) Sep

func (*StringService) Sep(r string) (StringPart, error)

func (*StringService) SepPtr

func (s *StringService) SepPtr(r string) (*StringPart, error)

func (StringService) ServiceCoordinate

func (s StringService) ServiceCoordinate() srpc.ServiceCoordinate

func (*StringService) Uppercase

func (*StringService) Uppercase(s string) (string, error)

func (*StringService) UppercasePtr

func (*StringService) UppercasePtr(ctx context.Context, s *string) (string, error)

type StringServiceClient

type StringServiceClient struct {
	Uppercase    func(string) (string, error)
	UppercasePtr func(string) (string, error)
	Join         func(r StringPart) (string, error)
	JoinPtr      func(r *StringPart) (string, error)
	Sep          func(r string) (StringPart, error)
	SepPtr       func(r string) (*StringPart, error)
}

func (StringServiceClient) ServiceCoordinate

func (s StringServiceClient) ServiceCoordinate() srpc.ServiceCoordinate

Jump to

Keyboard shortcuts

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