compilation

package
v0.0.0-...-d6856c1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

View Source
const (
	//IntentCompilationHandle handle string
	IntentCompilationHandle = handleKey("Handle")
)

Variables

This section is empty.

Functions

func SetupService

func SetupService(
	WriteService services.WriteService,
	ReadService services.ReadService,
	allocator asfservices.IntPoolAllocator,
) (services.Service, error)

SetupService setups all required services and chains them.

Types

type IntentCompilationService

type IntentCompilationService struct {
	Store Store
	// contains filtered or unexported fields
}

IntentCompilationService represents Intent Compilation Service.

func NewIntentCompilationService

func NewIntentCompilationService() (*IntentCompilationService, error)

NewIntentCompilationService makes a new Intent Compilation Service.

func (*IntentCompilationService) Run

Run runs the IntentCompilationService.

type Store

type Store interface {
	Create(context.Context, string, []byte) error
	Put(context.Context, string, []byte) error
	Get(context.Context, string) ([]byte, error)
	WatchRecursive(context.Context, string, int64) chan asfetcd.Message
	DoInTransaction(ctx context.Context, do func(context.Context) error) error
	Close() error
}

Store represents data store that is source of events.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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