Skip to content

Commit

Permalink
remove unused code and update go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriakh committed Feb 3, 2019
1 parent 994400d commit d2cb40d
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 326 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Kira

Kira micro framework
147 changes: 0 additions & 147 deletions config/config.go

This file was deleted.

25 changes: 0 additions & 25 deletions config/config_test.go

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion config/testdata/session.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions database/mongo/mongo.go

This file was deleted.

44 changes: 0 additions & 44 deletions database/mysql/mysql.go

This file was deleted.

8 changes: 0 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
module github.com/go-kira/kira

require (
github.com/Lafriakh/config v0.0.0-20171223003722-dc734f141b64
github.com/Lafriakh/kira v0.0.0-20181021152015-0e026c0c4b55
github.com/Lafriakh/log v0.0.0-20180527032428-2ebd3a914d94
github.com/go-kira/kog v0.0.0
github.com/go-kira/kon v0.0.0
github.com/go-sql-driver/mysql v1.4.1
github.com/google/uuid v1.1.0
github.com/gorilla/mux v1.7.0
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/yaml.v2 v2.2.2
)
45 changes: 4 additions & 41 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,58 +1,21 @@
github.com/Lafriakh/config v0.0.0-20171223003722-dc734f141b64 h1:vwP8f22KiiAVoydDOdi/2iAvUB6De62UbuUrnv4AjEE=
github.com/Lafriakh/config v0.0.0-20171223003722-dc734f141b64/go.mod h1:QG+JPifM/d3A7SEPexTtVMhdEOsI8+SgodF0HpXaorg=
github.com/Lafriakh/kira v0.0.0-20181021152015-0e026c0c4b55 h1:OrCs/XTXnUF5biZLWP5i+lpbCsJlUWQqkUPXztH32nU=
github.com/Lafriakh/kira v0.0.0-20181021152015-0e026c0c4b55/go.mod h1:aunVy1d+3IdNOAQXp/04vmjrpGiKesya5uVciBpr6lk=
github.com/Lafriakh/log v0.0.0-20180527032428-2ebd3a914d94 h1:V0Kjl3uKCY87RWW4hyGyVH2LwZ8SEqn9y1Uth/A2E90=
github.com/Lafriakh/log v0.0.0-20180527032428-2ebd3a914d94/go.mod h1:c6IliimJtYK78Ivh9MInHqaZf/+8RAz+cgCoz59Q98s=
github.com/go-kira/kog v0.0.0-20180917154418-0a9eb8cd3237 h1:5+TZMjl1sVLP6VhdhE7dES0RKkb4LF6txlADWHTUWEw=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/go-kira/kog v0.0.0-20180917154418-0a9eb8cd3237/go.mod h1:zqGZJHidG6U0e34KJBAtij6d9AW+/dFynky0vyd/H60=
github.com/go-kira/kog v0.0.0-20181016231056-fad3a48d043b h1:tgs4F63/h5qzB/3IQsNFJUDomXEAW3ZE038pzaFbzxo=
github.com/go-kira/kog v0.0.0-20181016231056-fad3a48d043b/go.mod h1:zqGZJHidG6U0e34KJBAtij6d9AW+/dFynky0vyd/H60=
github.com/go-kira/kog v0.0.0 h1:DAzDjiKi2Trk89MgfY17wTh/c4LN3IlgPLc4uV87Woc=
github.com/go-kira/kog v0.0.0/go.mod h1:zqGZJHidG6U0e34KJBAtij6d9AW+/dFynky0vyd/H60=
github.com/go-kira/kon v0.0.0-20181013165914-ab8946a5c597 h1:DxYN0WfRs7F+HEGMaiMXMSKWZNxnqTqNzvfFBt8ZjDE=
github.com/go-kira/kon v0.0.0-20181013165914-ab8946a5c597/go.mod h1:cwFD8HLwUTk0Jr6PZA1Gx2eylCmjVZV7JFs3EqKITkQ=
github.com/go-kira/kon v0.0.0-20181013202125-fb269f764192 h1:Z0spGbfYQrIPcOze6J6bJhtZ5Zpm5WihQzUBYVG/j/I=
github.com/go-kira/kon v0.0.0-20181013202125-fb269f764192/go.mod h1:cwFD8HLwUTk0Jr6PZA1Gx2eylCmjVZV7JFs3EqKITkQ=
github.com/go-kira/kon v0.0.0-20181014225737-21fb29f35f12 h1:iCfpjGUByC5ELrFKtooY704XcIAu+owhFFcY1WvtDYo=
github.com/go-kira/kon v0.0.0-20181014225737-21fb29f35f12/go.mod h1:cwFD8HLwUTk0Jr6PZA1Gx2eylCmjVZV7JFs3EqKITkQ=
github.com/go-kira/kon v0.0.0-20181103221750-93ec2d6d8e0a h1:Ll6lqWSM3LwPw+UUwDimpbFe3+JugBzT2YhM3SBMVw4=
github.com/go-kira/kon v0.0.0-20181103221750-93ec2d6d8e0a/go.mod h1:pU4cVTPg71Avt9Ue9lcHjJGCHPa9/5fCKaJcC5s7/z4=
github.com/go-kira/kon v0.0.0-20181103222844-9c2485df6f24 h1:djJ7reNlRxOO8sEe++OZcwFZB60hS1mq8Wr5Knw+qDk=
github.com/go-kira/kon v0.0.0-20181103222844-9c2485df6f24/go.mod h1:pU4cVTPg71Avt9Ue9lcHjJGCHPa9/5fCKaJcC5s7/z4=
github.com/go-kira/kon v0.0.0 h1:ZBVoiEgFDTxKxGmV+6NY/RJozVGdiQSCUesbn1UO6aU=
github.com/go-kira/kon v0.0.0/go.mod h1:pU4cVTPg71Avt9Ue9lcHjJGCHPa9/5fCKaJcC5s7/z4=
github.com/go-sql-driver/mysql v1.4.0 h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk=
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/google/uuid v1.0.0 h1:b4Gk+7WdP/d3HZH8EJsZpvV7EtDOgaZLtnaNGIu1adA=
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.0 h1:Jf4mxPC/ziBnoPIdpQdPJ9OeiomAUHLvxmPRSPH9m4s=
github.com/google/uuid v1.1.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/mux v1.6.2 h1:Pgr17XVTNXAk3q/r4CpKzC5xBM/qW1uVLV+IhRZpIIk=
github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
github.com/gorilla/mux v1.7.0 h1:tOSd0UKHQd6urX6ApfOn4XdBMY6Sh1MfxV3kmaazO+U=
github.com/gorilla/mux v1.7.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
golang.org/x/crypto v0.0.0-20181012144002-a92615f3c490 h1:va0qYsIOza3Nlf2IncFyOql4/3XUq3vfge/Ad64bhlM=
golang.org/x/crypto v0.0.0-20181012144002-a92615f3c490/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181015023909-0c41d7ab0a0e h1:IzypfodbhbnViNUO/MEh0FzCUooG97cIGfdggUrUSyU=
golang.org/x/crypto v0.0.0-20181015023909-0c41d7ab0a0e/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16 h1:y6ce7gCWtnH+m3dCjzQ1PCuwl28DDIc3VNnvY29DlIA=
golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613 h1:MQ/ZZiDsUapFFiMS+vzwXkCTeEKaum+Do5rINYJDmxc=
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1 h1:Y/KGZSOdz/2r0WJ9Mkmz6NJBusp0kiNx1Cn82lzJQ6w=
golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181017193950-04a2e542c03f/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181102091132-c10e9556a7bc h1:ZMCWScCvS2fUVFw8LOpxyUUW5qiviqr4Dg5NdjLeiLU=
golang.org/x/net v0.0.0-20181102091132-c10e9556a7bc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3 h1:ulvT7fqt0yHWzpJwI57MezWnYDVpCAYBVuYst/L+fAY=
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce h1:xcEWjVhvbDy+nHP67nPDDpbYrY+ILlfndk4bRioVHaU=
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8=
gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k=
gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
Expand Down
4 changes: 4 additions & 0 deletions plugins/plugins.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package plugins

// TODO
// - Plugin system: Like caddy do.
6 changes: 2 additions & 4 deletions session/file_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/Lafriakh/log"
"github.com/go-kira/kog"
)

// FileHandler ...
Expand Down Expand Up @@ -98,8 +98,6 @@ func (f *FileHandler) GC() {

return nil
}); err != nil {
log.WithContext(log.Fields{
"files": err,
}).Error("session garbage collecting")
kog.Error("session garbage collecting")
}
}
Loading

0 comments on commit d2cb40d

Please sign in to comment.