Skip to content

Commit

Permalink
add more statement for adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Nov 10, 2018
1 parent 6935f52 commit b928706
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import (
"github.com/chenhg5/go-admin/template/types"
)

// WebFrameWork is a interface which is used as an adapter of
// framework and goAdmin. It must implement two methods. Use registers
// the routes and the corresponding handlers. Content writes the
// response to the corresponding context of framework.
type WebFrameWork interface {
Use(interface{}, []plugins.Plugin) error
Content(interface{}, types.GetPanel)
Expand Down
2 changes: 1 addition & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 ChenHonggui. All rights reserved.
// Copyright 2018 cg33. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion template/template.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 ChenHonggui. All rights reserved.
// Copyright 2018 cg33. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.

Expand Down

0 comments on commit b928706

Please sign in to comment.