Documentation ¶
Index ¶
- Constants
- type KeyValueYARPCServer
- func (k *KeyValueYARPCServer) GetValue(ctx context.Context, request *examplepb.GetValueRequest) (*examplepb.GetValueResponse, error)
- func (k *KeyValueYARPCServer) SetNextError(err error)
- func (k *KeyValueYARPCServer) SetValue(ctx context.Context, request *examplepb.SetValueRequest) (*examplepb.SetValueResponse, error)
- type SinkYARPCServer
Constants ¶
View Source
const ( // FireDoneTimeout is how long fireDone will wait for both sending and receiving. FireDoneTimeout = 3 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValueYARPCServer ¶ added in v1.10.0
KeyValueYARPCServer implements examplepb.KeyValueYARPCServer.
func NewKeyValueYARPCServer ¶ added in v1.10.0
func NewKeyValueYARPCServer() *KeyValueYARPCServer
NewKeyValueYARPCServer returns a new KeyValueYARPCServer.
func (*KeyValueYARPCServer) GetValue ¶ added in v1.10.0
func (k *KeyValueYARPCServer) GetValue(ctx context.Context, request *examplepb.GetValueRequest) (*examplepb.GetValueResponse, error)
GetValue implements GetValue.
func (*KeyValueYARPCServer) SetNextError ¶ added in v1.10.0
func (k *KeyValueYARPCServer) SetNextError(err error)
SetNextError sets the error to return on the next call to KeyValueYARPCServer.
func (*KeyValueYARPCServer) SetValue ¶ added in v1.10.0
func (k *KeyValueYARPCServer) SetValue(ctx context.Context, request *examplepb.SetValueRequest) (*examplepb.SetValueResponse, error)
SetValue implements SetValue.
type SinkYARPCServer ¶ added in v1.10.0
SinkYARPCServer implements examplepb.SinkYARPCServer.
func NewSinkYARPCServer ¶ added in v1.10.0
func NewSinkYARPCServer(withFireDone bool) *SinkYARPCServer
NewSinkYARPCServer returns a new SinkYARPCServer.
func (*SinkYARPCServer) Fire ¶ added in v1.10.0
func (s *SinkYARPCServer) Fire(ctx context.Context, request *examplepb.FireRequest) error
Fire implements Fire.
func (*SinkYARPCServer) Values ¶ added in v1.10.0
func (s *SinkYARPCServer) Values() []string
Values returns a copy of the values that have been fired.
func (*SinkYARPCServer) WaitFireDone ¶ added in v1.10.0
func (s *SinkYARPCServer) WaitFireDone() error
WaitFireDone blocks until a fire is done, if withFireDone is set.
If will timeout after FireDoneTimeout and return error.
Click to show internal directories.
Click to hide internal directories.