forked from ebhomengo/niki
add structure of agentapp to niki project
This commit is contained in:
parent
b9db2926c1
commit
0ab459495f
|
|
@ -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