Documentation
¶
Index ¶
- 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 ContractMessageType
- type DeepContract
- func (contract DeepContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)
- func (contract DeepContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)
- 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
- type DeepContractOptions
- type DeepestContract
- func (contract DeepestContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)
- func (contract DeepestContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)
- 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
- type DeepestContractOptions
- type Message
- type NestedContract
- func (contract NestedContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)
- func (contract NestedContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)
- 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
- type NestedContractOptions
- type OpenDeepContext
- type OpenLeafContext
- type OpenNestedContext
- type OpenRootContext
- type Request
- type Response
- type RootContract
- func (contract RootContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)
- func (contract RootContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)
- 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
- type RootContractOptions
- type StreamingContract
- func (contract StreamingContract) AddInboundMiddleware(middleware arctic.ContractMiddleware)
- func (contract StreamingContract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)
- 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
- type StreamingContractOptions
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 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) OnLeaf ¶
func (contract DeepestContract) OnLeaf(handler func(*arctic.ContractContext, Message) Response)
type DeepestContractOptions ¶
type DeepestContractOptions struct {
}
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 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 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 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 StreamingContractOptions ¶
type StreamingContractOptions struct {
OpenNested NestedContractDefinition `arctic:"streaming"`
}
Click to show internal directories.
Click to hide internal directories.