chore: moved packages to v1
This commit is contained in:
1 parent
522ba1b639
commit
43e3a8a397
15 files changed
+26
-14
No files matched your search
@@ -1 +1,13 @@
|
||||
**gomax** is a framework for MAX BotAPI, originating from [github.com/abelith/etu-bot/pkg/maxlib](https://github.com/abelith/etu-bot/tree/main/pkg/maxlib)
|
||||
**gomax** is a framework for [MAX BotAPI](https://dev.max.ru/docs-api), originating from [github.com/abelith/etu-bot/pkg/maxlib](https://github.com/abelith/etu-bot/tree/main/pkg/maxlib)
|
||||
|
||||
The project is inspired by [aiogram](https://aiogram.dev)
|
||||
|
||||
The project is in active development, so things may change quickly
|
||||
|
||||
# Table of Contents
|
||||
- [General](#general)
|
||||
- [Future plans](#future-plans)
|
||||
|
||||
# General
|
||||
|
||||
# Future plans
|
||||
@@ -2,7 +2,7 @@ package context
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/abelith/gomax/state"
|
||||
"github.com/abelith/gomax/v1/state"
|
||||
maxbot "github.com/max-messenger/max-bot-api-client-go/v2"
|
||||
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
||||
"time"
|
||||
File renamed without changes.
@@ -3,9 +3,9 @@ package core
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
mcontext "github.com/abelith/gomax/context"
|
||||
"github.com/abelith/gomax/state"
|
||||
"github.com/abelith/gomax/state/memory"
|
||||
mcontext "github.com/abelith/gomax/v1/context"
|
||||
"github.com/abelith/gomax/v1/state"
|
||||
"github.com/abelith/gomax/v1/state/memory"
|
||||
maxbot "github.com/max-messenger/max-bot-api-client-go/v2"
|
||||
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
||||
"github.com/rs/zerolog/log"
|
||||
File renamed without changes.
@@ -1,6 +1,6 @@
|
||||
package core
|
||||
|
||||
import mcontext "github.com/abelith/gomax/context"
|
||||
import mcontext "github.com/abelith/gomax/v1/context"
|
||||
|
||||
type HandlerFunc func(c *mcontext.Context) error
|
||||
|
||||
File renamed without changes.
@@ -2,7 +2,7 @@ package core
|
||||
|
||||
import (
|
||||
"errors"
|
||||
mcontext "github.com/abelith/gomax/context"
|
||||
mcontext "github.com/abelith/gomax/v1/context"
|
||||
)
|
||||
|
||||
type Middleware func(next HandlerFunc) HandlerFunc
|
||||
File renamed without changes.
@@ -1,8 +1,8 @@
|
||||
package filters
|
||||
|
||||
import (
|
||||
mcontext "github.com/abelith/gomax/context"
|
||||
"github.com/abelith/gomax/state"
|
||||
mcontext "github.com/abelith/gomax/v1/context"
|
||||
"github.com/abelith/gomax/v1/state"
|
||||
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
||||
"regexp"
|
||||
"strings"
|
||||
@@ -0,0 +1 @@
|
||||
package v1
|
||||
@@ -2,9 +2,9 @@ package middleware
|
||||
|
||||
import (
|
||||
"errors"
|
||||
mcontext "github.com/abelith/gomax/context"
|
||||
"github.com/abelith/gomax/core"
|
||||
merrors "github.com/abelith/gomax/errors"
|
||||
mcontext "github.com/abelith/gomax/v1/context"
|
||||
"github.com/abelith/gomax/v1/core"
|
||||
merrors "github.com/abelith/gomax/v1/errors"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
@@ -2,7 +2,7 @@ package memory
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/abelith/gomax/state"
|
||||
"github.com/abelith/gomax/v1/state"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
File renamed without changes.
Reference in new issue
Block a user