user

package
v0.0.0-...-a33db15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

*

  • Copyright (C) 2024-2025 Jochem-W
  • You should have received a copy of the GNU Affero General Public License
  • along with this program. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var DefaultCache = &UserCache{data: map[string]*User{}}

Functions

This section is empty.

Types

type User

type User struct {
	Did         string
	Handle      string
	DisplayName string
	Avatar      string
	Client      *xrpc.Client
}

type UserCache

type UserCache struct {
	// contains filtered or unexported fields
}

func (*UserCache) Exists

func (u *UserCache) Exists(did string) bool

func (*UserCache) GetOrFetch

func (u *UserCache) GetOrFetch(did string) (*User, error)

func (*UserCache) Update

func (u *UserCache) Update(did string, profile *bsky.ActorProfile)

func (*UserCache) UpdateIdentity

func (u *UserCache) UpdateIdentity(did string, evt *atproto.SyncSubscribeRepos_Identity) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL