Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersonHandler ¶
type PersonHandler struct {
// contains filtered or unexported fields
}
PersonHandler handles HTTP requests related to Person entities.
func NewPersonHandler ¶
func NewPersonHandler(pr repository.IPersonRepository, client *ethclient.Client) *PersonHandler
NewPersonHandler creates a new instance of PersonHandler.
func (*PersonHandler) ListPeople ¶
func (ph *PersonHandler) ListPeople(ctx *gin.Context)
ListPeople lists all saved Person entities.
func (*PersonHandler) SavePerson ¶
func (ph *PersonHandler) SavePerson(ctx *gin.Context)
SavePerson saves a new Person entity and sets its info on the Ethereum smart contract.
Click to show internal directories.
Click to hide internal directories.