Skip to content

Commit

Permalink
* moved code from go-sdk
Browse files Browse the repository at this point in the history
* update work with websocket
  • Loading branch information
markus621 committed Oct 21, 2023
1 parent 3ab279a commit 6717f60
Show file tree
Hide file tree
Showing 200 changed files with 12,645 additions and 1,456 deletions.
14 changes: 1 addition & 13 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
# These are supported funding model platforms

#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
#patreon: # Replace with a single Patreon username
#open_collective: # Replace with a single Open Collective username
#ko_fi: # Replace with a single Ko-fi username
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
#liberapay: markus621
#issuehunt: # Replace with a single IssueHunt username
#otechie: # Replace with a single Otechie username
#lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://www.dewep.pro/donate'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
#custom: ['https://osspkg.com/donate'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
7 changes: 6 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ linters-settings:
# Tab width in spaces.
# Default: 1
tab-width: 1
staticcheck:
# Deprecated: use the global `run.go` instead.
go: "1.15"
# SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
# Default: ["*"]
checks: [ "*", "-SA1019" ]

linters:
disable-all: true
Expand All @@ -362,7 +368,6 @@ linters:
- unused
- prealloc
- durationcheck
# - nolintlint
- staticcheck
- makezero
- nilerr
Expand Down
69 changes: 0 additions & 69 deletions examples/demo-ws-cli/main.go

This file was deleted.

67 changes: 0 additions & 67 deletions examples/demo-ws/index.html

This file was deleted.

128 changes: 0 additions & 128 deletions examples/demo-ws/main.go

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"fmt"
"os"

"github.com/osspkg/go-sdk/console"
"github.com/osspkg/goppy"
"github.com/osspkg/goppy/plugins"
"github.com/osspkg/goppy/plugins/web"
"github.com/osspkg/goppy/sdk/console"
)

func main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ func main() {
)
app.Plugins(
plugins.Plugin{
Resolve: func(s unix.Server, c unix.Client) error {
Resolve: func(s unix.Server, c unix.Client, conf *unix.Config) error {

s.Command("demo", func(bytes []byte) ([]byte, error) {
fmt.Println("<", string(bytes))
return append(bytes, " world"...), nil
})

time.AfterFunc(time.Second*5, func() {
cc, err := c.Create("/tmp/demo-unix.sock")
cc, err := c.Create(conf.Path)
if err != nil {
panic(err)
}
Expand All @@ -49,7 +49,7 @@ func main() {
})

time.AfterFunc(time.Second*15, func() {
cc, err := c.Create("/tmp/demo-unix.sock")
cc, err := c.Create(conf.Path)
if err != nil {
panic(err)
}
Expand Down
File renamed without changes.
Loading

0 comments on commit 6717f60

Please sign in to comment.