Documentation
¶
Index ¶
- Constants
- func UnmarshalAny(msg *any.Any) (proto.Message, error)
- type Client
- type Operation
- func (o *Operation) Cancel(ctx context.Context, opts ...grpc.CallOption) error
- func (o *Operation) Client() Client
- func (o *Operation) CreatedAt() time.Time
- func (o *Operation) CreatedBy() string
- func (o *Operation) Description() string
- func (o *Operation) Done() bool
- func (o *Operation) Error() error
- func (o *Operation) ErrorStatus() *status.Status
- func (o *Operation) Failed() bool
- func (o *Operation) Id() string
- func (o *Operation) Metadata() (proto.Message, error)
- func (o *Operation) Ok() bool
- func (o *Operation) Poll(ctx context.Context, opts ...grpc.CallOption) error
- func (o *Operation) Proto() *Proto
- func (o *Operation) RawMetadata() *any.Any
- func (o *Operation) RawResponse() *any.Any
- func (o *Operation) Response() (proto.Message, error)
- func (o *Operation) Wait(ctx context.Context, opts ...grpc.CallOption) error
- func (o *Operation) WaitInterval(ctx context.Context, pollInterval time.Duration, opts ...grpc.CallOption) error
- type Proto
Constants ¶
View Source
const DefaultPollInterval = time.Second
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client = operation.OperationServiceClient
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
func (*Operation) Cancel ¶
Cancel requests operation cancel. On success operation state is updated. Returns error if cancel failed.
func (*Operation) Description ¶
func (*Operation) ErrorStatus ¶
func (*Operation) Poll ¶
Poll gets new state of operation from operation client. On success the operation state is updated. Returns error if update request failed.
func (*Operation) RawMetadata ¶
func (*Operation) RawResponse ¶
func (*Operation) WaitInterval ¶
Click to show internal directories.
Click to hide internal directories.