Documentation ¶
Index ¶
- func GenerateGuest(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)
- func GenerateHost(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)
- func GenerateModfile(packageImportPath string) ([]byte, error)
- func GenerateTypes(signatureSchema *signature.Schema, packageName string) ([]byte, error)
- type Generator
- func (g *Generator) GenerateGuest(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)
- func (g *Generator) GenerateHost(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)
- func (g *Generator) GenerateModfile(packageImportPath string) ([]byte, error)
- func (g *Generator) GenerateTypes(signatureSchema *signature.Schema, packageName string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateGuest ¶
func GenerateGuest(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)
GenerateGuest generates the guest bindings for the signature
func GenerateHost ¶
func GenerateHost(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)
GenerateHost generates the host bindings for the signature
func GenerateModfile ¶
GenerateModfile generates the go.mod file for the signature
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is the go generator
func (*Generator) GenerateGuest ¶
func (g *Generator) GenerateGuest(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)
GenerateGuest generates the guest bindings for the signature
func (*Generator) GenerateHost ¶
func (g *Generator) GenerateHost(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)
GenerateHost generates the host bindings for the signature
Note: the given schema should already be normalized, validated, and modified to have its accessors and validators disabled
func (*Generator) GenerateModfile ¶
GenerateModfile generates the modfile for the signature
Click to show internal directories.
Click to hide internal directories.