Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Package string // Scopes is list of scopes defined for the service. Scopes []Scope // Methods is mapping between full method name and its scopes. Methods []Method }
File represents a proto file with all OAuth2 information parsed. Scopes and methods are converted from map to sorted slice of struct to have determinate generated codes.
func ParseFile ¶
func ParseFile(file *descriptorpb.FileDescriptorProto) (*File, error)
ParseFile parsed the given proto file to extract its OAuth2 scopes information.
Click to show internal directories.
Click to hide internal directories.