Skip to content

blackdreamers/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core

Getting Started

Initialize project with hotshot

hotshot new helloworld

Example Service

env

ENV=dev
#ENV=prod
LOG_LEVEL=debug
ETCD_ADDRS=localhost:2379
ETCD_AUTH=false
ETCD_TLS=false
ETCD_USER=xxx
ETCD_PASSWORD=xxx
ETCD_CA_PATH=xxx
ETCD_CERT_PATH=xxx
ETCD_CERT_KEY_PATH=xxx
package main

import (
	"github.com/blackdreamers/core/server"
	_ "github.com/blackdreamers/helloworld/db"
	_ "github.com/blackdreamers/helloworld/handler"
	_ "github.com/blackdreamers/helloworld/subscriber"
)

func main() {
	// Init server
	server.Init(
		server.Name("helloworld"),
		server.Type(server.SRV),
	)

	// Run server
	server.Run()
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages