Skip to content

Commit 9da87ec

Browse files
authored
feat: add at protocol and bluesky network (#66)
1 parent ad05920 commit 9da87ec

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

schema/network/network.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const (
3131
SatoshiVM // savm
3232
VSL // vsl
3333
XLayer // x-layer
34+
Bluesky // bluesky
3435
)
3536

3637
var _ echo.BindUnmarshaler = (*Network)(nil)
@@ -56,6 +57,7 @@ const (
5657
FarcasterProtocol Protocol = "farcaster"
5758
NearProtocol Protocol = "near"
5859
RSSProtocol Protocol = "rss"
60+
ATProtocol Protocol = "atproto"
5961
)
6062

6163
func (n Network) Protocol() Protocol {
@@ -72,6 +74,8 @@ func (n Network) Protocol() Protocol {
7274
return NearProtocol
7375
case RSSHub:
7476
return RSSProtocol
77+
case Bluesky:
78+
return ATProtocol
7579
default:
7680
return ""
7781
}
@@ -105,6 +109,8 @@ func (s Protocol) Networks() []Network {
105109
return []Network{Near}
106110
case RSSProtocol:
107111
return []Network{RSSHub}
112+
case ATProtocol:
113+
return []Network{Bluesky}
108114
default:
109115
return []Network{}
110116
}

schema/network/network_string.go

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)