giles

package module
v0.0.0-...-5619aa3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Giles

API Service for a backend MongoDB Database... details are purposely being left vague...

In the process of a rewrite and move to Travis CI

Kubernetes Deployment

Create a giles-secrets.yaml file, which will contain the username/password URI for MongoDB host/cluster

An example is included in the repo, but essentially is something like this:

apiVersion: v1
kind: Secret
metadata:
  name: giles-v1
  type: Opaque
data:
  mongo_uri: <base64 encoded mongo uri> 
  port: <base64 encoded port>

Encoding something as base64 on Mac/Linux you would echo the string piped to the command base64

echo 'mongodb://mongo:mongo@mongohost:27017/test' | base64

Installing

Installing the two yaml's into kubernetes is then done with the following command:

kubectl create -f giles-secrets.yaml
kubectl create -f giles-deployment.yaml

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ticker

type Ticker struct {
	//ID     bson.TypeObjectID `json:"id" bson:"_id"`
	Symbol string    `json:"symbol" bson:"symbol"`
	Date   time.Time `json:"date" bson:"date"`
	Price  float32   `json:"price" bson:"price"`
}

Ticker - Document structure for StockTicker Collection

type Watch

type Watch struct {
	Symbol      string    `json:"symbol" bson:"symbol"`
	CompanyName string    `json:"company_name" bson:"company_name"`
	ExtraArgs   []string  `json:"extra_args" bson:"extra_args"`
	CreateDate  time.Time `json:"create_date" bson:"create_date"`
	ModDate     time.Time `json:"mod_date" bson:"mod_date"`
}

Watch - Document structure to Configure What Tickers to Watch

Directories

Path Synopsis
cmd
pkg
api

Jump to

Keyboard shortcuts

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