Versions in this module Expand all Collapse all v0 v0.0.7 Nov 22, 2026 Changes in this version + func DeepContractFor() (factory arctic.ContractFactory[DeepContract]) + func DeepestContractFor() (factory arctic.ContractFactory[DeepestContract]) + func NestedContractFor() (factory arctic.ContractFactory[NestedContract]) + func RootContractFor() (factory arctic.ContractFactory[RootContract]) + func StreamingContractFor() (factory arctic.ContractFactory[StreamingContract]) + type DeepContract struct + func (contract DeepContract) NewOpenLeafContext(parent context.Context) (streamContext *OpenLeafContext) + func (contract DeepContract) OnOpenLeaf(handler func(*OpenLeafContext, Request) Response) + func (contract DeepContract) OpenLeaf(ctx *OpenLeafContext, request Request) (response Response, err error) + type DeepContractDefinition interface + OpenLeaf func(Request) Response + type DeepContractOptions struct + OpenLeaf DeepestContractDefinition + type DeepestContract struct + func (contract DeepestContract) Leaf(ctx context.Context, request Message) (response Response, err error) + func (contract DeepestContract) OnLeaf(handler func(*arctic.ContractContext, Message) Response) + type DeepestContractDefinition interface + Leaf func(Message) Response + type DeepestContractOptions struct + type Message struct + Value string + type NestedContract struct + func (contract NestedContract) NewOpenDeepContext(parent context.Context) (streamContext *OpenDeepContext) + func (contract NestedContract) OnOpenDeep(handler func(*OpenDeepContext, Request) Response) + func (contract NestedContract) OpenDeep(ctx *OpenDeepContext, request Request) (response Response, err error) + type NestedContractDefinition interface + OpenDeep func(Request) Response + type NestedContractOptions struct + OpenDeep DeepContractDefinition + type OpenDeepContext struct + Stream DeepContract + type OpenLeafContext struct + Stream DeepestContract + type OpenNestedContext struct + Stream NestedContract + type OpenRootContext struct + Stream StreamingContract + type Request struct + type Response struct + Value string + type RootContract struct + func (contract RootContract) NewOpenRootContext(parent context.Context) (streamContext *OpenRootContext) + func (contract RootContract) OnOpenRoot(handler func(*OpenRootContext, Request) Response) + func (contract RootContract) OpenRoot(ctx *OpenRootContext, request Request) (response Response, err error) + type RootContractDefinition interface + OpenRoot func(Request) Response + type RootContractOptions struct + OpenRoot StreamingContractDefinition + type StreamingContract struct + func (contract StreamingContract) NewOpenNestedContext(parent context.Context) (streamContext *OpenNestedContext) + func (contract StreamingContract) OnOpenNested(handler func(*OpenNestedContext, Request) Response) + func (contract StreamingContract) OpenNested(ctx *OpenNestedContext, request Request) (response Response, err error) + type StreamingContractDefinition interface + OpenNested func(Request) Response + type StreamingContractOptions struct + OpenNested NestedContractDefinition