Documentation ¶
Overview ¶
Package protoutil contains utilities for manipulation of MediFor protocol buffers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FieldNotFound = fmt.Errorf("field not found")
FieldNotFound error thrown when field not found
Functions ¶
func MessageStringField ¶
MessageStringField gets the string value of a particular field in a message.
func RewriteOutDir ¶
func RewriteOutDir(val proto.Message, f URIRewriter) error
RewriteOutDir looks for an OutDir in the top level of the message and rewrites it.
func RewriteURIs ¶
func RewriteURIs(val interface{}, f URIRewriter) error
RewriteURIs recursively looks through all fields of the given message, and attempts to rewrite URI fields in any Resource types it encounters, using the given URI rewrite function to apply the transformation.
Types ¶
type URIRewriter ¶
URIRewriter class to rewrite UR as proper resolved local or remote file paths
Click to show internal directories.
Click to hide internal directories.