Initial project snapshot
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package relay
|
||||
|
||||
import "errors"
|
||||
|
||||
var ErrProductionForwardingDisabled = errors.New("relay skeleton does not forward production payloads before an approved production mesh stage")
|
||||
|
||||
type Skeleton struct {
|
||||
ClusterID string
|
||||
NodeID string
|
||||
}
|
||||
|
||||
func (s Skeleton) AcceptControlConnection() bool {
|
||||
return s.ClusterID != "" && s.NodeID != ""
|
||||
}
|
||||
|
||||
func (s Skeleton) ForwardProductionPayload([]byte) error {
|
||||
return ErrProductionForwardingDisabled
|
||||
}
|
||||
Reference in New Issue
Block a user