github.com/elliott5/community@v0.14.1-0.20160709191136-823126fb026a/documize/documize.go (about)

     1  // Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
     2  //
     3  // This software (Documize Community Edition) is licensed under
     4  // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
     5  //
     6  // You can operate outside the AGPL restrictions by purchasing
     7  // Documize Enterprise Edition and obtaining a commercial license
     8  // by contacting <sales@documize.com>.
     9  //
    10  // https://documize.com
    11  
    12  // This package provides Documize as a single executable.
    13  package main
    14  
    15  import (
    16  	"github.com/documize/community/documize/api/endpoint"
    17  	"github.com/documize/community/documize/section"
    18  	"github.com/documize/community/wordsmith/environment"
    19  
    20  	_ "github.com/go-sql-driver/mysql" // the mysql driver is required behind the scenes
    21  )
    22  
    23  func main() {
    24  	environment.Parse("db")         // process the db value first
    25  	ready := make(chan struct{}, 1) // channel is used for testing
    26  
    27  	section.Register()
    28  
    29  	endpoint.Serve(ready)
    30  }