Versions in this module Expand all Collapse all v0 v0.25.0 Nov 9, 2026 Changes in this version + const ActionDeprecate + const ActionGrants + const ActionPublish + const ActionRebind + const BasisFields + const BasisInformationModel + const BasisUntyped + const KindBoundary + const KindEventSubprocess + const KindIntermediateCatch + const KindMessageStart + const KindReceiveTask + const OutcomeCompensation + const OutcomeEnd + const OutcomeError + const OutcomeEscalation + const OutcomeMessage + const OutcomeSignal + const OutcomeTerminate + const RankEditor + const RankNone + const RankOwner + const RankViewer + const SchemaVersion + const UnavailableDefinitionInactive + const UnavailableDefinitionMissing + const UnavailableOtherApplication + var ErrDeprecated = errors.New("the version is already deprecated") + var ErrNoVersion = errors.New("no such contract version") + var ErrNotFound = errors.New("no published interface with that id") + var ErrOtherProcess = errors.New("the interface belongs to another process") + var ErrSameContract = errors.New(...) + var ErrStaleRevision = errors.New("published interface revision changed") + var ErrTooManyVersions = errors.New("the interface holds the most contract versions it may") + var ErrUncertainWrite = errors.New("published interface store requires recovery after write error") + func Realize(c Candidates, processID string, definitionKey uint64, version int32, ...) (Contract, Binding, []string) + func ValidID(s string) bool + func ValidName(s string) bool + type Audience struct + GroupIDs []string + UserIDs []string + func CheckAudience(a Audience) (Audience, error) + type Binding struct + DefinitionKey uint64 + DefinitionVersion int32 + EntryPoints []ElementMap + Outcomes []ElementMap + ProcessID string + type CandidateEntryPoint struct + CorrelationKey string + ElementID string + ElementName string + Kind string + MessageName string + Payload Payload + Starts bool + type CandidateOutcome struct + ElementID string + ElementName string + Kind string + type CandidateReturns struct + Errors []string + Escalations []string + ThrownMessages []string + type Candidates struct + EntryPoints []CandidateEntryPoint + Outcomes []CandidateOutcome + Returns CandidateReturns + func Derive(cp *compiler.CompiledProcess, names map[string]string) Candidates + type CandidatesView struct + ApplicationID string + DefinitionKey uint64 + Interfaces []string + ProcessID string + Version int32 + type Change struct + Action string + ActorID string + At int64 + DefinitionKey uint64 + Grants *Grants + Note string + Revision uint64 + Version int + type Contract struct + EntryPoints []EntryPoint + Outcomes []Outcome + Returns Returns + func (c Contract) Differences(o Contract) []string + func (c Contract) Equal(o Contract) bool + type Definition struct + ApplicationID string + Inactive bool + Key uint64 + Process *compiler.CompiledProcess + ProcessID string + Version int32 + type ElementMap struct + ElementIDs []string + MessageName string + Name string + type EntryPoint struct + CorrelationKey string + Kind string + Name string + Payload Payload + Starts bool + type Grants struct + Public bool + Send Audience + View Audience + type Host struct + Definition func(key uint64) (Definition, bool) + GroupExists func(id string) (bool, error) + Names func(key uint64) map[string]string + Rank func(p *httpapi.Principal, applicationID string) (int, error) + UserExists func(id string) (bool, error) + type Interface struct + ApplicationID string + Grants Grants + History []Change + ID string + ProcessID string + Revision uint64 + SchemaVersion int + Versions []Version + func (in Interface) Latest() Version + func (in Interface) MaySend(p Principal) bool + func (in Interface) MayView(p Principal) bool + func (in Interface) VersionOf(v int) (Version, bool) + type InterfaceView struct + ApplicationID string + Grants *Grants + ID string + LatestVersion int + MaySend bool + MayView bool + ProcessID string + Public bool + Revision uint64 + Versions []VersionView + type Meta struct + ActorID string + At int64 + ExpectedRevision uint64 + type MutationView struct + Version int + type Outcome struct + Kind string + Name string + type Payload struct + Basis string + Class string + Fields []string + type Pick struct + ElementID string + ElementIDs []string + Name string + type Principal struct + GroupIDs []string + UserID string + type Returns struct + Errors []string + Escalations []string + Messages []string + type Selection struct + EntryPoints []Pick + Outcomes []Pick + Replies []string + func SelectionOf(b Binding, replies []string) Selection + type Service struct + Limits limits.Limits + func NewService(loop *runloop.Loop, store *Store, host Host, authEnabled func() bool, ...) *Service + func (s *Service) HandleCandidates(w http.ResponseWriter, r *http.Request) + func (s *Service) HandleDeprecate(w http.ResponseWriter, r *http.Request) + func (s *Service) HandleGet(w http.ResponseWriter, r *http.Request) + func (s *Service) HandleGetVersion(w http.ResponseWriter, r *http.Request) + func (s *Service) HandleHistory(w http.ResponseWriter, r *http.Request) + func (s *Service) HandleList(w http.ResponseWriter, r *http.Request) + func (s *Service) HandlePublish(w http.ResponseWriter, r *http.Request) + func (s *Service) HandleRebind(w http.ResponseWriter, r *http.Request) + func (s *Service) HandleSetGrants(w http.ResponseWriter, r *http.Request) + func (s *Service) Store() *Store + type Store struct + func NewStore(dir string) (*Store, error) + func (s *Store) All() []Interface + func (s *Store) Deprecate(id string, version int, note string, m Meta) (Interface, error) + func (s *Store) Get(id string) (Interface, bool) + func (s *Store) MaySend(id string, version int, p Principal) (Binding, bool) + func (s *Store) Publish(id, applicationID string, contract Contract, binding Binding, m Meta) (Interface, error) + func (s *Store) Rebind(id string, version int, binding Binding, m Meta) (Interface, error) + func (s *Store) SetGrants(id string, g Grants, m Meta) (Interface, error) + func (s *Store) Uncertain() bool + type SummaryView struct + ApplicationID string + Available bool + Deprecated bool + EntryPoints []string + ID string + LatestVersion int + MaySend bool + ProcessID string + Public bool + UnavailableReasons []string + type Version struct + Binding Binding + BoundAt int64 + BoundBy string + Contract Contract + Deprecated bool + DeprecatedAt int64 + DeprecatedBy string + DeprecationNote string + PublishedAt int64 + PublishedBy string + Version int + type VersionView struct + Available bool + Binding *Binding + BoundAt int64 + BoundBy string + Contract Contract + Deprecated bool + DeprecatedAt int64 + DeprecationNote string + PublishedAt int64 + PublishedBy string + UnavailableReasons []string + Version int