Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeServer ¶
type FakeServer struct { taskspb.UnimplementedCloudTasksServer // CreateTaskRequest is set by calls to CreateTask. CreateTaskRequest *taskspb.CreateTaskRequest // CreateTaskResponse is returned by calls to CreateTask. CreateTaskResponse *taskspb.Task // CreateTaskError is returned by calls to CreateTask CreateTaskError error // contains filtered or unexported fields }
FakeServer implements an in-memory fake implementation of a Cloud Tasks server, suitable for unit testing.
func (*FakeServer) CreateTask ¶
func (s *FakeServer) CreateTask(ctx context.Context, req *taskspb.CreateTaskRequest) (*taskspb.Task, error)
CreateTask stores a reference to req and returns the return values set in s.
func (*FakeServer) NewClient ¶
func (s *FakeServer) NewClient(ctx context.Context) (*cloudtasks.Client, error)
NewClient returns a cloudtasks.Client instance for a fake server, suitable for in-memory unit tests.
type Options ¶
type Options struct {
*grpcclient.Options
}
Options describes the client configuration for cloudtasks.
func NewOptionsFromFlags ¶
func NewOptionsFromFlags() *Options
NewOptionsFromFlags returns an Options instance populated from command line flag options.
Click to show internal directories.
Click to hide internal directories.