README ¶ pub # dir $ pub . # port $ pub :8080 # url $ pub https://example.com # port + url $ pub \ :9944 /rpc/ws \ https://polkadot.js.org/apps/ Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func ApplyRules(mux *http.ServeMux, rules Rules) func Handler(rules Rules) http.Handler func Run(args []string) error type Rule func NewRule(res, path_with_prefix string) Rule type Rules func Parse(s []string) (rules Rules) func (s *Rules) Push(r Rule) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ApplyRules ¶ added in v0.1.10 func ApplyRules(mux *http.ServeMux, rules Rules) func Handler ¶ added in v0.1.10 func Handler(rules Rules) http.Handler func Run ¶ func Run(args []string) error Types ¶ type Rule ¶ added in v0.1.10 type Rule struct { Resource string Path string Prefix string } func NewRule ¶ added in v0.1.10 func NewRule(res, path_with_prefix string) Rule type Rules ¶ added in v0.1.10 type Rules []Rule func Parse ¶ added in v0.1.10 func Parse(s []string) (rules Rules) func (*Rules) Push ¶ added in v0.1.10 func (s *Rules) Push(r Rule) Source Files ¶ View all Source files gen.gopub.go Directories ¶ Show internal Expand all Path Synopsis handler libpub offline Click to show internal directories. Click to hide internal directories.