INNER CODE UNIT · Go

main

pilinux/gorest · example3/cmd/app/main.go:34

func main() {
	// load configuration from the environment
	if err := gconfig.Config(); err != nil {
		fmt.Println(err)
		return
	}
	configure := gconfig.GetConfig()

	// example3 is MongoDB-only: the wrapped master key and the file metadata
	// both live in Mongo.
	if !gconfig.IsMongo() {
		fmt.Println("ACTIVATE_MONGO must be set to yes for example3")
		return
	}
	for {
		if _, err := gdb.InitMongo(); err != nil {
			fmt.Println(err)
			time.Sleep(10 * time.Second)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…