Skip to content

Commit d090167

Browse files
committed
Remove obsolete chat.yaml and cs2.yaml configuration files: Eliminate outdated configuration files for Quiver Chat and Counter-Strike 2 to streamline project structure and reduce clutter. This change enhances maintainability and focuses on current project requirements.
1 parent 4192454 commit d090167

File tree

15 files changed

+188
-158
lines changed

15 files changed

+188
-158
lines changed
Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
version: "0.2"
1+
manifest: "arrow@v1" # ? The arrow prefix identifies that this is
2+
# ? a arrow package, on the v1 version
23

34
metadata:
4-
name: "quiver.chat"
5-
description: "Quiver Chat is a chat client for the Quiver platform."
6-
mainteiners:
7-
- "https://char2cs.net"
5+
version: 25.7.0
6+
license: MIT
7+
quiver_url: https://quiver.ar/quiver/quiver.yaml
8+
9+
name: quiver.chat
10+
description: Quiver Chat is a chat client for the Quiver platform.
11+
12+
media:
13+
icon: https://quiver.ar/quiver/icon.png
14+
banner: https://quiver.ar/quiver/banner.png
15+
816
credits:
9-
- "Rabbyte Software"
10-
license: "MIT"
11-
repository: "https://github.com/rabbytesoftware/quiver.chat"
12-
documentation: "https://github.com/rabbytesoftware/quiver.chat"
13-
version: "25.7.0"
17+
- name: char2cs
18+
19+
url: https://char2cs.net
1420

1521
requirements:
1622
cpu_cores: 1

arrow.dev/quiver.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
manifest: "quiver@v1" # ? The quiver prefix identifies that this is
2+
# ? a quiver repository, on the v1 version
3+
4+
metadata:
5+
version: 25.9.0
6+
license: GPL-3.0
7+
url: https://quiver.ar/quiver
8+
9+
name: core.quiver
10+
description: Core arrows for Quiver functionality.
11+
12+
media:
13+
icon: https://quiver.ar/quiver/icon.png
14+
banner: https://quiver.ar/quiver/banner.png"
15+
16+
credits:
17+
- name: Mateo Urrutia
18+
19+
url: https://char2cs.net
20+
21+
arrows:
22+
- name: chat.quiver
23+
description: Chat client for Quiver.
24+
manifest_url: https://quiver.ar/quiver/arrows/chat.arrow.yaml

internal/infrastructure/fetchnshare/models.go

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
)
99

1010
type ResourceInfo struct {
11-
Path string
12-
Type ResourceType
13-
Size int64
11+
Path string
12+
Type ResourceType
13+
Size int64
1414
ModTime time.Time
1515
}
1616

@@ -24,153 +24,153 @@ const (
2424
type FNSInterface interface {
2525
// Resource Access
2626
GetInfo(
27-
ctx context.Context,
27+
ctx context.Context,
2828
path string,
2929
) (*ResourceInfo, error)
3030
Exists(
31-
ctx context.Context,
31+
ctx context.Context,
3232
path string,
3333
) (bool, error)
3434
IsDir(
35-
ctx context.Context,
35+
ctx context.Context,
3636
path string,
3737
) (bool, error)
3838
IsFile(
39-
ctx context.Context,
39+
ctx context.Context,
4040
path string,
4141
) (bool, error)
42-
42+
4343
// File Operations
4444
Read(
45-
ctx context.Context,
45+
ctx context.Context,
4646
path string,
4747
) ([]byte, error)
4848
ReadStream(
49-
ctx context.Context,
49+
ctx context.Context,
5050
path string,
5151
) (io.ReadCloser, error)
5252
Write(
53-
ctx context.Context,
54-
path string,
53+
ctx context.Context,
54+
path string,
5555
data []byte,
5656
) error
5757
WriteStream(
58-
ctx context.Context,
59-
path string,
58+
ctx context.Context,
59+
path string,
6060
reader io.Reader,
6161
) error
6262
Append(
63-
ctx context.Context,
64-
path string,
63+
ctx context.Context,
64+
path string,
6565
data []byte,
6666
) error
67-
67+
6868
// Directory Operations
6969
List(
70-
ctx context.Context,
70+
ctx context.Context,
7171
path string,
7272
) ([]ResourceInfo, error)
7373
Mkdir(
74-
ctx context.Context,
75-
path string,
74+
ctx context.Context,
75+
path string,
7676
perm os.FileMode,
7777
) error
7878
MkdirAll(
79-
ctx context.Context,
80-
path string,
79+
ctx context.Context,
80+
path string,
8181
perm os.FileMode,
8282
) error
8383
Remove(
84-
ctx context.Context,
84+
ctx context.Context,
8585
path string,
8686
) error
8787
RemoveAll(
88-
ctx context.Context,
88+
ctx context.Context,
8989
path string,
9090
) error
91-
91+
9292
// File System Operations
9393
Copy(
94-
ctx context.Context,
94+
ctx context.Context,
9595
src, dst string,
9696
) error
9797
Move(
98-
ctx context.Context,
98+
ctx context.Context,
9999
src, dst string,
100100
) error
101101
Rename(
102-
ctx context.Context,
102+
ctx context.Context,
103103
src, dst string,
104104
) error
105105
Chmod(
106-
ctx context.Context,
107-
path string,
106+
ctx context.Context,
107+
path string,
108108
mode os.FileMode,
109109
) error
110110
Chown(
111-
ctx context.Context,
112-
path string,
111+
ctx context.Context,
112+
path string,
113113
uid, gid int,
114114
) error
115-
115+
116116
// Download and Fetch Operations
117117
Download(
118-
ctx context.Context,
119-
url,
120-
dst string,
118+
ctx context.Context,
119+
url,
120+
dst string,
121121
progress func(int),
122122
) error
123123
DownloadStream(
124-
ctx context.Context,
125-
url string,
124+
ctx context.Context,
125+
url string,
126126
progress func(int),
127127
) (io.ReadCloser, error)
128128
Fetch(
129-
ctx context.Context,
129+
ctx context.Context,
130130
url string,
131131
) ([]byte, error)
132-
132+
133133
// Cache Management
134134
CacheGet(
135-
ctx context.Context,
135+
ctx context.Context,
136136
key string,
137137
) ([]byte, error)
138138
CacheSet(
139-
ctx context.Context,
140-
key string,
141-
data []byte,
139+
ctx context.Context,
140+
key string,
141+
data []byte,
142142
ttl time.Duration,
143143
) error
144144
CacheDelete(
145-
ctx context.Context,
145+
ctx context.Context,
146146
key string,
147147
) error
148148
CacheClear(
149149
ctx context.Context,
150150
) error
151-
151+
152152
// Resource Resolution
153153
Resolve(
154-
ctx context.Context,
154+
ctx context.Context,
155155
path string,
156156
) (string, ResourceType, error)
157157
Validate(
158-
ctx context.Context,
158+
ctx context.Context,
159159
path string,
160160
) error
161-
161+
162162
// Utility Operations
163163
TempFile(
164-
ctx context.Context,
164+
ctx context.Context,
165165
pattern string,
166166
) (string, error)
167167
TempDir(
168-
ctx context.Context,
168+
ctx context.Context,
169169
pattern string,
170170
) (string, error)
171171
Walk(
172-
ctx context.Context,
173-
root string,
172+
ctx context.Context,
173+
root string,
174174
fn func(path string, info ResourceInfo, err error) error,
175175
) error
176176
}

internal/infrastructure/infrastructure.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ import (
1212
tl "github.com/rabbytesoftware/quiver/internal/infrastructure/translator/models"
1313
)
1414

15-
type Infrastructure struct{
16-
Netbridge netbridge.NetbridgeInterface
17-
FNS fns.FNSInterface
18-
Translator tl.TranslatorInterface
15+
type Infrastructure struct {
16+
Netbridge netbridge.NetbridgeInterface
17+
FNS fns.FNSInterface
18+
Translator tl.TranslatorInterface
1919
Requirements requirements.SRVInterface
20-
Runtime runtime.REEInterface
20+
Runtime runtime.REEInterface
2121
}
2222

2323
func NewInfrastructure() *Infrastructure {
24-
netbridge := netbridge.NewNetbridge() // Netbridge module
25-
fns := fns.NewFNS() // Fetch and Share module
26-
translator := translator.NewTranslator(fns) // Translator (ATL & QTL) module
27-
requirements := requirements.NewRequirements() // Requirements module
28-
runtime := runtime.NewRuntime() // Runtime module
24+
netbridge := netbridge.NewNetbridge() // Netbridge module
25+
fns := fns.NewFNS() // Fetch and Share module
26+
translator := translator.NewTranslator(fns) // Translator (ATL & QTL) module
27+
requirements := requirements.NewRequirements() // Requirements module
28+
runtime := runtime.NewRuntime() // Runtime module
2929

3030
return &Infrastructure{
31-
Netbridge: netbridge,
32-
FNS: fns,
33-
Translator: translator,
31+
Netbridge: netbridge,
32+
FNS: fns,
33+
Translator: translator,
3434
Requirements: requirements,
35-
Runtime: runtime,
35+
Runtime: runtime,
3636
}
3737
}

internal/infrastructure/netbridge/models.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,38 @@ type NetbridgeInterface interface {
1818
) (string, error)
1919

2020
IsPortAvailable(
21-
ctx context.Context,
21+
ctx context.Context,
2222
port int,
2323
) (bool, error)
2424
ArePortsAvailable(
25-
ctx context.Context,
25+
ctx context.Context,
2626
ports []int,
2727
) (bool, error)
2828

2929
ForwardPort(
30-
ctx context.Context,
30+
ctx context.Context,
3131
port int,
3232
) (port.PortRule, error)
3333
ForwardPorts(
34-
ctx context.Context,
34+
ctx context.Context,
3535
ports []int,
3636
) ([]port.PortRule, error)
3737

3838
ReversePort(
39-
ctx context.Context,
39+
ctx context.Context,
4040
port int,
4141
) (port.PortRule, error)
4242
ReversePorts(
43-
ctx context.Context,
43+
ctx context.Context,
4444
ports []int,
4545
) ([]port.PortRule, error)
4646

4747
GetPortForwardingStatus(
48-
ctx context.Context,
48+
ctx context.Context,
4949
port int,
5050
) (port.ForwardingStatus, error)
5151
GetPortForwardingStatuses(
52-
ctx context.Context,
52+
ctx context.Context,
5353
ports []int,
5454
) ([]port.ForwardingStatus, error)
5555
}

0 commit comments

Comments
 (0)