Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SayHello(ctx context.Context, name string) error GenerateGreeting(ctx context.Context, name string) (string, error) }
Client is an example service interface that we will generate code for
type FakeClient ¶
type FakeClient struct { }
FakeClient is a Client implementation that will randomly fail
func (*FakeClient) GenerateGreeting ¶
GenerateGreeting generates a string for a greeting, this will randomly return errors
type File ¶
type File struct {
Name string
}
File is a type defined in the same package that we are using for targetting
type Service ¶
type Service struct{}
Service is an example of a struct defined contract that will be reversed engineered by reinforcer
type SomeOtherClient ¶
type SomeOtherClient interface { DoStuff() error SaveFile(myFile *File, osFile *os.File) error GetUser(ctx context.Context) (*sub.User, error) MethodWithChannel(myChan <-chan bool) error MethodWithWildcard(arg interface{}) }
SomeOtherClient is another example service interface that can be targeted
Click to show internal directories.
Click to hide internal directories.