2023-03-28 19:39:22 +01:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-11 09:12:13 -04:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 19:39:22 +01:00
|
|
|
|
2018-04-08 15:08:34 +01:00
|
|
|
package cachetype
|
|
|
|
|
2022-12-14 09:24:22 -06:00
|
|
|
import "context"
|
|
|
|
|
2018-04-08 14:30:14 +01:00
|
|
|
// RPC is an interface that an RPC client must implement. This is a helper
|
|
|
|
// interface that is implemented by the agent delegate so that Type
|
|
|
|
// implementations can request RPC access.
|
2022-10-21 15:58:06 -04:00
|
|
|
//
|
2022-07-05 16:57:15 -05:00
|
|
|
//go:generate mockery --name RPC --inpackage
|
2018-04-08 14:30:14 +01:00
|
|
|
type RPC interface {
|
2022-12-14 09:24:22 -06:00
|
|
|
RPC(ctx context.Context, method string, args interface{}, reply interface{}) error
|
2018-04-08 14:30:14 +01:00
|
|
|
}
|