forked from ebhomengo/niki
Merge pull request 'add structure of agentapp to niki project' (#246) from add-agent-domain into develop
Reviewed-on: ebhomengo/niki#246
This commit is contained in:
commit
6cea941f48
|
|
@ -0,0 +1,7 @@
|
||||||
|
package agentapp
|
||||||
|
|
||||||
|
type Application struct {
|
||||||
|
config Config
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setup() {}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
package agentapp
|
||||||
|
|
||||||
|
type Config struct {
|
||||||
|
// database config
|
||||||
|
// httpserver config
|
||||||
|
//...
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
package http
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
package http
|
||||||
|
|
||||||
|
type Server struct {
|
||||||
|
// httpServer
|
||||||
|
// handler
|
||||||
|
}
|
||||||
|
|
||||||
|
func New() Server {
|
||||||
|
return Server{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s Server) Serve() {}
|
||||||
|
|
||||||
|
func (s Server) RegisterRoutes() {}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
package repository
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
package service
|
||||||
|
|
||||||
|
type Agent struct {
|
||||||
|
ID uint
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
package service
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
package service
|
||||||
|
|
||||||
|
type Service struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func New() Service {
|
||||||
|
return Service{}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
package service
|
||||||
Loading…
Reference in New Issue