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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/abelith/gomax/state"
|
"github.com/abelith/gomax/v1/state"
|
||||||
maxbot "github.com/max-messenger/max-bot-api-client-go/v2"
|
maxbot "github.com/max-messenger/max-bot-api-client-go/v2"
|
||||||
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
||||||
"time"
|
"time"
|
||||||
File renamed without changes.
@@ -3,9 +3,9 @@ package core
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
mcontext "github.com/abelith/gomax/context"
|
mcontext "github.com/abelith/gomax/v1/context"
|
||||||
"github.com/abelith/gomax/state"
|
"github.com/abelith/gomax/v1/state"
|
||||||
"github.com/abelith/gomax/state/memory"
|
"github.com/abelith/gomax/v1/state/memory"
|
||||||
maxbot "github.com/max-messenger/max-bot-api-client-go/v2"
|
maxbot "github.com/max-messenger/max-bot-api-client-go/v2"
|
||||||
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
File renamed without changes.
@@ -1,6 +1,6 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
import mcontext "github.com/abelith/gomax/context"
|
import mcontext "github.com/abelith/gomax/v1/context"
|
||||||
|
|
||||||
type HandlerFunc func(c *mcontext.Context) error
|
type HandlerFunc func(c *mcontext.Context) error
|
||||||
|
|
||||||
File renamed without changes.
@@ -2,7 +2,7 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
mcontext "github.com/abelith/gomax/context"
|
mcontext "github.com/abelith/gomax/v1/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Middleware func(next HandlerFunc) HandlerFunc
|
type Middleware func(next HandlerFunc) HandlerFunc
|
||||||
File renamed without changes.
@@ -1,8 +1,8 @@
|
|||||||
package filters
|
package filters
|
||||||
|
|
||||||
import (
|
import (
|
||||||
mcontext "github.com/abelith/gomax/context"
|
mcontext "github.com/abelith/gomax/v1/context"
|
||||||
"github.com/abelith/gomax/state"
|
"github.com/abelith/gomax/v1/state"
|
||||||
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
"github.com/max-messenger/max-bot-api-client-go/v2/model"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
package v1
|
||||||
@@ -2,9 +2,9 @@ package middleware
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
mcontext "github.com/abelith/gomax/context"
|
mcontext "github.com/abelith/gomax/v1/context"
|
||||||
"github.com/abelith/gomax/core"
|
"github.com/abelith/gomax/v1/core"
|
||||||
merrors "github.com/abelith/gomax/errors"
|
merrors "github.com/abelith/gomax/v1/errors"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -2,7 +2,7 @@ package memory
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/abelith/gomax/state"
|
"github.com/abelith/gomax/v1/state"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
File renamed without changes.
Reference in new issue
Block a user