【更新】更新restful

This commit is contained in:
PandaGoAdmin
2022-08-03 16:00:32 +08:00
parent 2cb23c0ecf
commit 6945277fdb
48 changed files with 1234 additions and 836 deletions

View File

@@ -0,0 +1,19 @@
package transport
import (
"context"
)
type Type string
const (
TypeHTTP Type = "HTTP"
TypeGRPC Type = "GRPC"
)
// Server is transport server.
type Server interface {
Type() Type
Start(context.Context) error
Stop(context.Context) error
}