recursive_contract

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: AGPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepContractFor

func DeepContractFor() (factory arctic.ContractFactory[DeepContract])

func DeepestContractFor

func DeepestContractFor() (factory arctic.ContractFactory[DeepestContract])

func NestedContractFor

func NestedContractFor() (factory arctic.ContractFactory[NestedContract])

func RootContractFor

func RootContractFor() (factory arctic.ContractFactory[RootContract])

func StreamingContractFor

func StreamingContractFor() (factory arctic.ContractFactory[StreamingContract])

Types

type ContractMessageType added in v0.0.8

type ContractMessageType = arctic.ContractMessageType
const (
	ContractMessageDeepestContractLeaf ContractMessageType = iota
	ContractMessageDeepContractOpenLeaf
	ContractMessageNestedContractOpenDeep
	ContractMessageStreamingContractOpenNested
	ContractMessageRootContractOpenRoot
)

type DeepContract

type DeepContract struct {
	// contains filtered or unexported fields
}

func (DeepContract) AddInboundMiddleware added in v0.0.8

func (contract DeepContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)

func (DeepContract) AddOutboundMiddleware added in v0.0.8

func (contract DeepContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)

func (DeepContract) NewOpenLeafContext

func (contract DeepContract) NewOpenLeafContext(parent context.Context) (streamContext *OpenLeafContext)

func (DeepContract) OnOpenLeaf

func (contract DeepContract) OnOpenLeaf(handler func(*OpenLeafContext, Request) Response)

func (DeepContract) OpenLeaf

func (contract DeepContract) OpenLeaf(ctx *OpenLeafContext, request Request) (response Response, err error)

type DeepContractDefinition

type DeepContractDefinition interface {
	OpenLeaf(Request) Response
	// contains filtered or unexported methods
}

type DeepContractOptions

type DeepContractOptions struct {
	OpenLeaf DeepestContractDefinition `arctic:"streaming"`
}

type DeepestContract

type DeepestContract struct {
	// contains filtered or unexported fields
}

func (DeepestContract) AddInboundMiddleware added in v0.0.8

func (contract DeepestContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)

func (DeepestContract) AddOutboundMiddleware added in v0.0.8

func (contract DeepestContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)

func (DeepestContract) Leaf

func (contract DeepestContract) Leaf(ctx context.Context, request Message) (response Response, err error)

func (DeepestContract) OnLeaf

func (contract DeepestContract) OnLeaf(handler func(*arctic.ContractContext, Message) Response)

type DeepestContractDefinition

type DeepestContractDefinition interface {
	Leaf(Message) Response
	// contains filtered or unexported methods
}

type DeepestContractOptions

type DeepestContractOptions struct {
}

type Message

type Message struct {
	Value string
}

type NestedContract

type NestedContract struct {
	// contains filtered or unexported fields
}

func (NestedContract) AddInboundMiddleware added in v0.0.8

func (contract NestedContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)

func (NestedContract) AddOutboundMiddleware added in v0.0.8

func (contract NestedContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)

func (NestedContract) NewOpenDeepContext

func (contract NestedContract) NewOpenDeepContext(parent context.Context) (streamContext *OpenDeepContext)

func (NestedContract) OnOpenDeep

func (contract NestedContract) OnOpenDeep(handler func(*OpenDeepContext, Request) Response)

func (NestedContract) OpenDeep

func (contract NestedContract) OpenDeep(ctx *OpenDeepContext, request Request) (response Response, err error)

type NestedContractDefinition

type NestedContractDefinition interface {
	OpenDeep(Request) Response
	// contains filtered or unexported methods
}

type NestedContractOptions

type NestedContractOptions struct {
	OpenDeep DeepContractDefinition `arctic:"streaming"`
}

type OpenDeepContext

type OpenDeepContext struct {
	*arctic.ContractContext
	Stream DeepContract
}

type OpenLeafContext

type OpenLeafContext struct {
	*arctic.ContractContext
	Stream DeepestContract
}

type OpenNestedContext

type OpenNestedContext struct {
	*arctic.ContractContext
	Stream NestedContract
}

type OpenRootContext

type OpenRootContext struct {
	*arctic.ContractContext
	Stream StreamingContract
}

type Request

type Request struct{}

type Response

type Response struct {
	Value string
}

type RootContract

type RootContract struct {
	// contains filtered or unexported fields
}

func (RootContract) AddInboundMiddleware added in v0.0.8

func (contract RootContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)

func (RootContract) AddOutboundMiddleware added in v0.0.8

func (contract RootContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)

func (RootContract) NewOpenRootContext

func (contract RootContract) NewOpenRootContext(parent context.Context) (streamContext *OpenRootContext)

func (RootContract) OnOpenRoot

func (contract RootContract) OnOpenRoot(handler func(*OpenRootContext, Request) Response)

func (RootContract) OpenRoot

func (contract RootContract) OpenRoot(ctx *OpenRootContext, request Request) (response Response, err error)

type RootContractDefinition

type RootContractDefinition interface {
	OpenRoot(Request) Response
	// contains filtered or unexported methods
}

type RootContractOptions

type RootContractOptions struct {
	OpenRoot StreamingContractDefinition `arctic:"streaming"`
}

type StreamingContract

type StreamingContract struct {
	// contains filtered or unexported fields
}

func (StreamingContract) AddInboundMiddleware added in v0.0.8

func (contract StreamingContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)

func (StreamingContract) AddOutboundMiddleware added in v0.0.8

func (contract StreamingContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)

func (StreamingContract) NewOpenNestedContext

func (contract StreamingContract) NewOpenNestedContext(parent context.Context) (streamContext *OpenNestedContext)

func (StreamingContract) OnOpenNested

func (contract StreamingContract) OnOpenNested(handler func(*OpenNestedContext, Request) Response)

func (StreamingContract) OpenNested

func (contract StreamingContract) OpenNested(ctx *OpenNestedContext, request Request) (response Response, err error)

type StreamingContractDefinition

type StreamingContractDefinition interface {
	OpenNested(Request) Response
	// contains filtered or unexported methods
}

type StreamingContractOptions

type StreamingContractOptions struct {
	OpenNested NestedContractDefinition `arctic:"streaming"`
}

Jump to

Keyboard shortcuts

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