Documentation
¶
Index ¶
- func ContractFor() (factory arctic.ContractFactory[Contract])
- type Contract
- func (contract Contract) AddInboundMiddleware(middleware arctic.ContractMiddleware)
- func (contract Contract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)
- func (contract Contract) OnPing(handler func(*arctic.ContractContext, PingRequest) PingResponse)
- func (contract Contract) Ping(ctx context.Context, request PingRequest) (response PingResponse, err error)
- type ContractDefinition
- type ContractMessageType
- type ContractOptions
- type PingRequest
- type PingResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContractFor ¶
func ContractFor() (factory arctic.ContractFactory[Contract])
Types ¶
type Contract ¶
type Contract struct {
// contains filtered or unexported fields
}
func (Contract) AddInboundMiddleware ¶
func (contract Contract) AddInboundMiddleware(middleware arctic.ContractMiddleware)
func (Contract) AddOutboundMiddleware ¶
func (contract Contract) AddOutboundMiddleware(middleware arctic.ContractMiddleware)
func (Contract) OnPing ¶
func (contract Contract) OnPing(handler func(*arctic.ContractContext, PingRequest) PingResponse)
func (Contract) Ping ¶
func (contract Contract) Ping(ctx context.Context, request PingRequest) (response PingResponse, err error)
type ContractDefinition ¶
type ContractDefinition interface {
Ping(PingRequest) PingResponse
// contains filtered or unexported methods
}
type ContractMessageType ¶
type ContractMessageType = arctic.ContractMessageType
const (
ContractMessageContractPing ContractMessageType = iota
)
type ContractOptions ¶
type ContractOptions struct {
}
type PingRequest ¶
type PingRequest struct {
Message string
}
type PingResponse ¶
type PingResponse struct {
Message string
}
Click to show internal directories.
Click to hide internal directories.