method

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	Type       aipreflect.MethodType
	Descriptor protoreflect.MethodDescriptor
	Resource   *annotations.ResourceDescriptor
}

Method represents one of the AIP standard methods for a specific resource.

type Methods

type Methods []*Method

Methods represents a set of Method, usually found on a protoreflect.ServiceDescriptor.

func NewMethods

func NewMethods(service protoreflect.ServiceDescriptor) Methods

func (Methods) Get

func (m Methods) Get(
	resource *annotations.ResourceDescriptor,
	methodType aipreflect.MethodType,
) *Method

Get returns the Method with methodType for resource. If no such method exists, nil is returned.

func (Methods) Resources

func (m Methods) Resources() []*annotations.ResourceDescriptor

Resources returns all unique resources Methods refers to.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL