RegisterHandlers 시그니쳐 수정 (ServerMuxInterface)
This commit is contained in:
@ -431,7 +431,7 @@ func (mg *Maingate) prepare(context context.Context) (err error) {
|
||||
|
||||
var portptr = flagx.Int("port", 80, "")
|
||||
|
||||
func (mg *Maingate) RegisterHandlers(ctx context.Context, serveMux *http.ServeMux, prefix string) error {
|
||||
func (mg *Maingate) RegisterHandlers(ctx context.Context, serveMux gocommon.ServerMuxInterface, prefix string) error {
|
||||
var allServices []*serviceDescription
|
||||
if err := mg.mongoClient.AllAs(CollectionService, &allServices, options.Find().SetReturnKey(false)); err != nil {
|
||||
return logger.ErrorWithCallStack(err)
|
||||
|
||||
Reference in New Issue
Block a user