package integrations
Import Path
/pkg/integrations (on go.dev)
Dependency Relation
imports 6 packages, and imported by one package
Involved Source Files
integrations.go
Package-Level Type Names (total 10)
GetterReq is a generic request, which results in GetterResp with
respective fields filled out.
Request named clocks of the passed states
Request an importable version of the state machine
Request the ID of the state machine
The kind of the request.
Request the ID of the parent state machine
Request the tags of the state machine
Request ticks of the passed states
Request the sum of ticks of the passed states
func NewGetterReq() *GetterReq
func HandlerGetter(ctx context.Context, mach am.Api, req *GetterReq) (*GetterResp, error)
GetterResp is a response to GetterReq.
The named clocks of the passed states
The importable version of the state machine
The ID of the state machine
The kind of the response.
The ID of the state machine.
The ID of the parent state machine
The tags of the state machine
The ticks of the passed states
The sum of ticks of the passed states
func HandlerGetter(ctx context.Context, mach am.Api, req *GetterReq) (*GetterResp, error)
Value string
(*Kind) MarshalJSON() ([]byte, error)
(*Kind) UnmarshalJSON(b []byte) error
*Kind : github.com/goccy/go-json.Marshaler
*Kind : github.com/goccy/go-json.Unmarshaler
*Kind : encoding/json.Marshaler
*Kind : encoding/json.Unmarshaler
var KindReqGetter
var KindReqMutation
var KindReqWaiting
var KindRespGetter
var KindRespMutation
var KindRespWaiting
MsgKindReq is a decoding helper.
The kind of the request.
MsgKindResp is a decoding helper.
The kind of the response.
The states to add to the state machine.
Arguments passed to transition handlers.
The kind of the request.
The states to remove from the state machine.
func NewMutationReq() *MutationReq
func HandlerMutation(ctx context.Context, mach am.Api, req *MutationReq) (*MutationResp, error)
The kind of the request.
The result of the mutation request.
func HandlerMutation(ctx context.Context, mach am.Api, req *MutationReq) (*MutationResp, error)
The kind of the request.
The states to wait for, the default is to all states being active simultaneously (if no time passed).
The states names to wait for to be inactive. Ignores the Time field.
The specific (minimal) time to wait for.
func NewWaitingReq() *WaitingReq
func HandlerWaiting(ctx context.Context, mach am.Api, req *WaitingReq) (*WaitingResp, error)
WaitingRespUnsafe WaitingRespUnsafe
The kind of the response.
The ID of the state machine.
The active states waited for. If time is empty, all these states are active simultaneously.
The inactive states waited for.
The requested machine time (the current one may be higher).
(*WaitingResp) UnmarshalJSON(b []byte) error
*WaitingResp : github.com/goccy/go-json.Unmarshaler
*WaitingResp : encoding/json.Unmarshaler
func HandlerWaiting(ctx context.Context, mach am.Api, req *WaitingReq) (*WaitingResp, error)
The kind of the response.
The ID of the state machine.
The active states waited for. If time is empty, all these states are active simultaneously.
The inactive states waited for.
The requested machine time (the current one may be higher).
Package-Level Functions (total 6)
func HandlerGetter(ctx context.Context, mach am.Api, req *GetterReq) (*GetterResp, error) func HandlerMutation(ctx context.Context, mach am.Api, req *MutationReq) (*MutationResp, error) func HandlerWaiting(ctx context.Context, mach am.Api, req *WaitingReq) (*WaitingResp, error)
NewGetterReq creates a new getter request.
NewMutationReq creates a new mutation request.
TODO sugar for NewAddReq and NewRemoveReq
NewWaitingReq creates a new waiting request.
Package-Level Variables (total 7)
var KindReqGetter Kind var KindReqMutation Kind var KindReqWaiting Kind var KindRespGetter Kind var KindRespMutation Kind var KindRespWaiting Kind
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |