package
0.3.1
Repository: https://github.com/kotalco/core-api.git
Documentation: pkg.go.dev

# Functions

Count returns total number of nodes 1-call ethereum service to get exiting node list 2-create X-Total-Count header with the length 3-return.
Create creates ethereum node from the given spec 1-Todo validate request body and return validation error 2-call chain link service to create ethereum node 2-marshall node to dto and format the response.
Delete a single ethereum node by name 1-get node from locals which checked and assigned by ValidateNodeExist 2-call ethereum service to delete the node 3-return ok if deleted with no errors.
Get returns a single ethereum node by name 1-get the node validated from ValidateNodeExist method 2-marshall node to dto and format the response.
List returns all ethereum nodes 1-get the pagination qs default to 0 2-call service to return node models 3-make the pagination 3-marshall nodes to ethereum dto and format the response using NewResponse.
No description provided by the author
Update updates a single ethereum node by name from spec 1-todo validate request body and return validation errors if exits 2-get node from locals which checked and assigned by ValidateNodeExist 3-call ethereum service to update node which returns *ethereumv1alpha1.Node 4-marshall node to node dto and format the response.
ValidateNodeExist validate node by name exist acts as a validation for all handlers the needs to find ethereum by name 1-call ethereum service to check if node exits 2-return 404 if it's not 3-save the node to local with the key node to be used by the other handlers.