nbalake

package module
v0.0.0-...-1d40744 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 8 Imported by: 1

README

nbalake

nbalake is a library for storing structured and unstructured nba data to either S3, minio, or other blob store.

Documentation

Index

Constants

View Source
const (
	NBALAKE_HOST = "host"
	NBALAKE_PORT = "port"
)
View Source
const (
	NBALAKE             = "nbalake"
	NBALAKE_AUTH_KEY    = "key"
	NBALAKE_AUTH_SECRET = "secret"
	NBALAKE_CONF_DIR    = "conf_dir"
)
View Source
const (
	NBALAKE_API_DEFAULT_HOST = "localhost"
	NBALAKE_API_DEFAULT_PORT = "9000"
	NBALAKE_SERVICE          = "minio"
)
View Source
const (
	CONF_DEFAULT_DIR       = "conf"
	CONF_DEFAULT_FILE      = "config"
	CONF_DEFAULT_FILE_TYPE = "json"
)
View Source
const (
	BUCKET_RAW       = "nba.raw"
	BUCKET_ANALYTICS = "nba.analytics"
)
View Source
const (
	PREFIX_LEADERS = "leaders"
	PREFIX_SEASON  = "season"
)
View Source
const (
	STR_EMPTY  = ""
	STR_PERIOD = "."
)
View Source
const (
	CONTENT_TYPE_JSON = "application/json"
)
View Source
const (
	EXT_PARQUET = ".parquet"
)
View Source
const (
	NBALAKE_DELIMITER = "."
)

Variables

This section is empty.

Functions

func BucketName

func BucketName(y string, id string) string

func ConnectionNew

func ConnectionNew()

func Exists

func Exists(b string, k string) bool

func Get

func Get(b string, f string) []byte

func GetLatestLeaders

func GetLatestLeaders(b string) string

func GetServerAddr

func GetServerAddr() string

func InitBuckets

func InitBuckets(buckets []string)

func List

func List(b string) <-chan minio.ObjectInfo

func ParseDate

func ParseDate(f string) string

func Put

func Put(b string, k string, r []byte)

func PutFile

func PutFile(b string, k string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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