Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Add document
Browse files Browse the repository at this point in the history
  • Loading branch information
duck8823 committed Sep 17, 2018
1 parent 3fb64ae commit 68244ff
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions application/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ import (
)

const (
// Name is a application name.
Name = "duci"
)

var (
// Config is a application configuration.
Config *Configuration
)

Expand Down
1 change: 1 addition & 0 deletions application/service/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"path"
)

// State represents state of commit status
type State = string

const (
Expand Down
4 changes: 3 additions & 1 deletion infrastructure/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type RuntimeOptions struct {
// Environments represents a docker `-e` option.
type Environments map[string]interface{}

// ToArray returns string array of environments
func (e Environments) ToArray() []string {
var a []string
for key, val := range e {
Expand All @@ -29,9 +30,10 @@ func (e Environments) ToArray() []string {
return a
}

// Environments represents a docker `-v` option.
// Volumes represents a docker `-v` option.
type Volumes []string

// ToMap returns map of volumes.
func (v Volumes) ToMap() map[string]struct{} {
m := make(map[string]struct{})
for _, volume := range v {
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
)

var (
timeFormat = "2006-01-02 15:04:05.000"
timeFormat = "2006-01-02 15:04:05.000"
// Writer is a log writer. default is os.Stdout.
Writer io.Writer = os.Stdout
now = time.Now
Writer io.Writer = os.Stdout
now = time.Now
)

// Debug logs with the Debug severity.
Expand Down
1 change: 1 addition & 0 deletions presentation/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"net/http"
)

// New returns handler of application.
func New() (http.Handler, error) {
logstoreService, githubService, err := createCommonServices()
if err != nil {
Expand Down

0 comments on commit 68244ff

Please sign in to comment.