reinforced

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientMethods = struct {
	GenerateGreeting string
	SayHello         string
}{
	GenerateGreeting: "GenerateGreeting",
	SayHello:         "SayHello",
}

ClientMethods are the methods in Client

View Source
var RetryAllErrors = func(_ string, _ error) bool {
	return true
}
View Source
var ServiceMethods = struct {
	GetData string
}{
	GetData: "GetData",
}

ServiceMethods are the methods in Service

View Source
var SomeOtherClientMethods = struct {
	DoStuff            string
	GetUser            string
	MethodWithChannel  string
	MethodWithWildcard string
	SaveFile           string
}{
	DoStuff:            "DoStuff",
	GetUser:            "GetUser",
	MethodWithChannel:  "MethodWithChannel",
	MethodWithWildcard: "MethodWithWildcard",
	SaveFile:           "SaveFile",
}

SomeOtherClientMethods are the methods in SomeOtherClient

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(delegate targetClient, runnerFactory runnerFactory, options ...Option) *Client

func (*Client) GenerateGreeting

func (c *Client) GenerateGreeting(ctx context.Context, arg1 string) (string, error)

func (*Client) SayHello

func (c *Client) SayHello(ctx context.Context, arg1 string) error

type Option

type Option func(*base)

func WithRetryableErrorPredicate

func WithRetryableErrorPredicate(fn func(string, error) bool) Option

type Service

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

func NewService

func NewService(delegate targetService, runnerFactory runnerFactory, options ...Option) *Service

func (*Service) GetData

func (s *Service) GetData() ([]byte, error)

type SomeOtherClient

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

func NewSomeOtherClient

func NewSomeOtherClient(delegate targetSomeOtherClient, runnerFactory runnerFactory, options ...Option) *SomeOtherClient

func (*SomeOtherClient) DoStuff

func (s *SomeOtherClient) DoStuff() error

func (*SomeOtherClient) GetUser

func (s *SomeOtherClient) GetUser(ctx context.Context) (*sub.User, error)

func (*SomeOtherClient) MethodWithChannel

func (s *SomeOtherClient) MethodWithChannel(arg0 <-chan bool) error

func (*SomeOtherClient) MethodWithWildcard

func (s *SomeOtherClient) MethodWithWildcard(arg0 interface{})

func (*SomeOtherClient) SaveFile

func (s *SomeOtherClient) SaveFile(arg0 *client.File, arg1 *os.File) error

Jump to

Keyboard shortcuts

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