grains

package
v0.0.0-...-7c85a9a Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvocationID

func NewInvocationID() string

Types

type ExecutionStatus

type ExecutionStatus int
const (
	ExecutionError ExecutionStatus = iota
	ExecutionSuccess
	ExecutionNoLongerAbleToRun
)

type Grain

type Grain struct {
	ID   string
	Type string
}

func (Grain) Invocation

func (g Grain) Invocation(method string, data []byte) *Invocation

type GrainExecution

type GrainExecution struct {
	GrainID   string
	Status    ExecutionStatus
	Result    []byte
	Error     error
	GrainType string
}

func (*GrainExecution) IsSuccessful

func (ge *GrainExecution) IsSuccessful() bool

func (*GrainExecution) String

func (ge *GrainExecution) String() string

type Invocation

type Invocation struct {
	InvocationId string
	GrainID      string
	GrainType    string
	MethodName   string
	Data         []byte
	Context      context.Context
}

func (*Invocation) GrainInfo

func (i *Invocation) GrainInfo() string

type InvocationResult

type InvocationResult struct {
	InvocationId string
	Data         []byte
	Status       InvocationStatus
}

type InvocationStatus

type InvocationStatus int
const (
	InvocationSuccess InvocationStatus = iota
	InvocationFailure
)

type ScheduleStatus

type ScheduleStatus int
const (
	ScheduleError ScheduleStatus = iota
	ScheduleSuccess
)

Jump to

Keyboard shortcuts

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