Documentation
¶
Overview ¶
Package prefetch builds wasm bots preloaded with necessary information
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotImage ¶
type BotImage struct {
// contains filtered or unexported fields
}
type Prefetcher ¶
type Prefetcher struct {
// contains filtered or unexported fields
}
func Create ¶
func (*Prefetcher) Build ¶
func (pf *Prefetcher) Build(ctx context.Context, targetRepositoryPath string, listLoader []StaticLoader) (*BotImage, error)
Build an image. Take the data from prefetch (e.g. Orca pool data) and write the Json files into the Rust code base so that those files can be statically compiled into the web assembly binary.
func (*Prefetcher) State ¶
func (pf *Prefetcher) State() state.Client
Source Files
¶
- prefetch.go
- rust.go
Click to show internal directories.
Click to hide internal directories.