Documentation
¶
Overview ¶
Package render reads every input of one run and returns every output, in memory, so a caller writes nothing when any input has a problem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct{ Proxyfile, Out, RPCMethods, RPCTable string } // RPCMethods, RPCTable "" when not given
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
Run is the inputs of one render, read without a problem and ready to generate.
func Read ¶
Read reads every input of req and returns them ready to generate, or every problem it finds.
The proxyfile is read first, because every other input is read against it. Then the origins file, when the proxyfile names one instead of writing the origins, the RPC methods and the rpc-entry rule run together, so one run names the problems of all three. The methods are the proxyfile's rpc.methods when it writes them, and the --rpc-methods file otherwise; giving both is a problem, because one list would be ignored.
func (*Run) HasMethods ¶ added in v1.1.0
HasMethods reports whether the run was given RPC methods, by rpc.methods or --rpc-methods, an empty list included, so a caller can refuse an RPC table that no methods were given for.