Skip to content

Commit

Permalink
feat: add at protocol and bluesky network (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
polebug authored Oct 31, 2024
1 parent ad05920 commit 9da87ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions schema/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const (
SatoshiVM // savm
VSL // vsl
XLayer // x-layer
Bluesky // bluesky
)

var _ echo.BindUnmarshaler = (*Network)(nil)
Expand All @@ -56,6 +57,7 @@ const (
FarcasterProtocol Protocol = "farcaster"
NearProtocol Protocol = "near"
RSSProtocol Protocol = "rss"
ATProtocol Protocol = "atproto"
)

func (n Network) Protocol() Protocol {
Expand All @@ -72,6 +74,8 @@ func (n Network) Protocol() Protocol {
return NearProtocol
case RSSHub:
return RSSProtocol
case Bluesky:
return ATProtocol
default:
return ""
}
Expand Down Expand Up @@ -105,6 +109,8 @@ func (s Protocol) Networks() []Network {
return []Network{Near}
case RSSProtocol:
return []Network{RSSHub}
case ATProtocol:
return []Network{Bluesky}
default:
return []Network{}
}
Expand Down
12 changes: 8 additions & 4 deletions schema/network/network_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9da87ec

Please sign in to comment.