pokt

command module
v0.0.0-...-850f989 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

pokt

Approach

  1. Portfolio and children CRUD for CLI
    • Process for adding new messages w/o adding methods to the type:
      1. Write proto rpc message(s) w/ format: rpc ActionType(MsgActionType) returns (MsgActionTypeResponse);
      2. Write proto rpc messages for MsgActionType and MsgActionTypeResponse
      3. Generate .pb.go files
      4. Write ActionType(MsgActionType)
      5. Write cobra command to call ActionType as a gRPC client
  2. Portfolio updates w/ API using CLI
  3. Browser charts from local storage
  4. Browser CRUD with portofio

Architecture

 __________________            ______________________                         ___________________
|                  |  (HTTP)  |                      | (Read/Write Protobuf) |                   |
|   CoinGecko API  | <------> |   Portfolio Module   | <-------------------> |   Local Storage   |
|__________________|          |      _____________   |                       |___________________|
 ______________               |     |             |  |                                 ^     
|              | (Cobra CLI)  |     | gRPC Server |  |                                 |
|   Terminal   | <----------------->|_____________|  |                 (Read Protobuf) |
|______________|              |_____________^________|                                 |
 ______________          __________         |                                          |
|              |  (JS)  |          |        | (Proto Request/Response)                 |  
|    Browser   | <----> |   Node   | <------+                                          |
|______________|        |__________| <-------------------------------------------------+ 

Documentation

Overview

Copyright © 2023 Bradley Lostak lostak@engineer.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
client
cmd

Jump to

Keyboard shortcuts

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