gen

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	AgentName          string
	ModulePath         string
	CanisterName       string
	PackageName        string
	ServiceDescription did.Description
	// contains filtered or unexported fields
}

Generator is a generator for a given service description.

func NewGenerator

func NewGenerator(agentName, canisterName, packageName string, rawDID []byte) (*Generator, error)

NewGenerator creates a new generator for the given service description.

func (*Generator) Generate

func (g *Generator) Generate() ([]byte, error)

func (*Generator) GenerateActor

func (g *Generator) GenerateActor() ([]byte, error)

func (*Generator) GenerateActorTypes

func (g *Generator) GenerateActorTypes() ([]byte, error)

func (*Generator) GenerateMock

func (g *Generator) GenerateMock() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL