sociallinkssettings

package
v0.171.7 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxNumOfSocialLinks = 20
)

Variables

View Source
var (
	ErrNilSocialLinkProvided    = errors.New("social links, nil object provided")
	ErrOlderSocialLinksProvided = errors.New("older social links provided")
)

Functions

This section is empty.

Types

type SocialLinksSettings

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

func NewSocialLinksSettings

func NewSocialLinksSettings(db *sql.DB) *SocialLinksSettings

func (*SocialLinksSettings) AddOrReplaceSocialLinksIfNewer added in v0.156.1

func (s *SocialLinksSettings) AddOrReplaceSocialLinksIfNewer(links identity.SocialLinks, clock uint64) error
func (s *SocialLinksSettings) GetSocialLinks() (identity.SocialLinks, error)

func (*SocialLinksSettings) GetSocialLinksClock added in v0.156.1

func (s *SocialLinksSettings) GetSocialLinksClock() (result uint64, err error)

Jump to

Keyboard shortcuts

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