handler

package
v0.0.0-...-6ba0ecf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL