Documentation ¶
Index ¶
- Constants
- type JsLibrary
- func (s *JsLibrary) Deps() []string
- func (s *JsLibrary) Imports(c *config.Config, r *rule.Rule, file *rule.File) []resolve.ImportSpec
- func (s *JsLibrary) Kind() string
- func (s *JsLibrary) Name() string
- func (s *JsLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, ...)
- func (s *JsLibrary) Rule(otherGen ...*rule.Rule) *rule.Rule
- func (s *JsLibrary) Srcs() []string
- func (s *JsLibrary) Visibility() []string
Constants ¶
View Source
const ( ProtoNodeJsLibraryRuleName = "proto_nodejs_library" ProtoNodeJsLibraryRuleSuffix = "_nodejs_library" )
View Source
const ( ProtoTsLibraryRuleName = "proto_ts_library" ProtoTsLibraryRuleSuffix = "_ts_proto" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsLibrary ¶
type JsLibrary struct { KindName string RuleNameSuffix string Outputs []string Config *protoc.ProtocConfiguration RuleConfig *protoc.LanguageRuleConfig Resolver protoc.DepsResolver }
JsLibrary implements RuleProvider for 'js_library'-derived rules.
func (*JsLibrary) Resolve ¶
func (s *JsLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, from label.Label)
Resolve implements part of the RuleProvider interface.
func (*JsLibrary) Visibility ¶
Visibility provides visibility labels.
Click to show internal directories.
Click to hide internal directories.