Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseGerritClientFactory ¶
func UseGerritClientFactory(ctx context.Context, factory GerritClientFactory) context.Context
UseGerritClientFactory returns a context that causes new Client instances to use the given factory when getting gerrit clients.
Types ¶
type ChangeInfo ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetChangeInfo ¶
type GerritClient ¶
type GerritClient interface {
GetChange(ctx context.Context, in *gerritpb.GetChangeRequest, opts ...grpc.CallOption) (*gerritpb.ChangeInfo, error)
}
GerritClient provides a subset of the generated gerrit RPC client.
type GerritClientFactory ¶
type GerritClientFactory func(ctx context.Context, host string) (GerritClient, error)
GerritClientFactory creates clients for accessing each necessary gerrit instance.
Click to show internal directories.
Click to hide internal directories.