Files
Igor Sirotin f9cc782a6f refactor: move services to pkg/services
Part of the Go project layout migration, item 31.

Pure move plus import-path rewrite across 687 files. No API or behaviour
change.

The services keep their grouping under pkg/services/<name> rather than
being promoted to pkg/<name>: 27 top-level directories in pkg/ would read
worse than what we have, and the grouping is what makes "an RPC service"
identifiable at a glance.

Paths that follow the move: the logosstorage test target and generate
step, the two wallet token-list tools, the migration-order check (and the
pre-rebase hook symlinked to it), and the storage env helper.

refs #7067
2026-08-21 10:11:05 +02:00

50 lines
1.6 KiB
Go

package sharedurls
import (
"github.com/status-im/status-go/internal/crypto/types"
)
type PublicAPI struct {
service *Service
}
func (api *PublicAPI) ShareCommunityURLWithChatKey(communityID types.HexBytes) (string, error) {
return api.service.ShareCommunityURLWithChatKey(communityID)
}
func (api *PublicAPI) ShareCommunityURLWithData(communityID types.HexBytes) (string, error) {
return api.service.ShareCommunityURLWithData(communityID)
}
func (api *PublicAPI) ShareCommunityChannelURLWithChatKey(communityID types.HexBytes, channelID string) (string, error) {
return api.service.ShareCommunityChannelURLWithChatKey(communityID, channelID)
}
func (api *PublicAPI) ShareCommunityChannelURLWithData(communityID types.HexBytes, channelID string) (string, error) {
return api.service.ShareCommunityChannelURLWithData(communityID, channelID)
}
func (api *PublicAPI) ShareUserURLWithENS(pubKey string) (string, error) {
return api.service.ShareUserURLWithENS(pubKey)
}
func (api *PublicAPI) ShareUserURLWithChatKey(pubKey string) (string, error) {
return api.service.ShareUserURLWithChatKey(pubKey)
}
func (api *PublicAPI) ShareUserURLWithData(pubKey string) (string, error) {
return api.service.ShareUserURLWithData(pubKey)
}
func (api *PublicAPI) ParseSharedURL(url string) (*URLDataResponse, error) {
return ParseSharedURL(url)
}
func (api *PublicAPI) ShareMessageURL(chatID string, messageID string) (string, error) {
return ShareMessageURL(chatID, messageID)
}
func (api *PublicAPI) ParseMessageURL(url string) (*MessageURLData, error) {
return ParseMessageURL(url)
}