18F/e-QIP-prototype

View on GitHub
api/entity.go

Summary

Maintainability
A
0 mins
Test Coverage
package api

// Entity is a structure which can marshall and validate.
type Entity interface {
    Marshaller
}

// Marshaller is structure which can marshal and unmarshal JSON.
type Marshaller interface {
    Unmarshal([]byte) error
    Marshal() Payload
}