drone/gitrpc/rpc/constants.go

19 lines
652 B
Go

// Copyright 2022 Harness Inc. All rights reserved.
// Use of this source code is governed by the Polyform Free Trial License
// that can be found in the LICENSE.md file for this repository.
package rpc
const (
// MetadataKeyRequestID is the key used to store the request ID in the metadata.
MetadataKeyRequestID = "x-request-id"
MetadataKeyEnvironmentVariables = "x-gitrpc-envars"
// ServiceUploadPack is the service constant used for triggering the upload pack operation.
ServiceUploadPack = "upload-pack"
// ServiceReceivePack is the service constant used for triggering the receive pack operation.
ServiceReceivePack = "receive-pack"
)