Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OpUnknown = unknown operation type OpUnknown = iota // OpAccessor = accessor operation type (ready only) OpAccessor // OpMutator = mutator operation type (modifies a repository) OpMutator )
Variables ¶
View Source
var GitalyProtoFileDescriptors []*descriptor.FileDescriptorProto
GitalyProtoFileDescriptors is a slice of all gitaly registered file descriptors
Functions ¶
This section is empty.
Types ¶
type MethodInfo ¶
type MethodInfo struct { Operation OpType // contains filtered or unexported fields }
MethodInfo contains metadata about the RPC method. Refer to documentation for message type "OperationMsg" shared.proto in gitlab-org/gitaly-proto for more documentation.
func (MethodInfo) TargetRepo ¶ added in v1.43.0
func (mi MethodInfo) TargetRepo(msg proto.Message) (*gitalypb.Repository, error)
TargetRepo returns the target repository for a protobuf message if it exists
type Registry ¶
Registry contains info about RPC methods
func (*Registry) LookupMethod ¶
func (pr *Registry) LookupMethod(service, method string) (MethodInfo, error)
LookupMethod looks up an MethodInfo by service and method name
func (*Registry) RegisterFiles ¶
func (pr *Registry) RegisterFiles(protos ...*descriptor.FileDescriptorProto) error
RegisterFiles takes one or more descriptor.FileDescriptorProto and populates the registry with its info
Click to show internal directories.
Click to hide internal directories.