Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

replicasync

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:17Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PubsubEvent = "replica"

Functions

This section is empty.

Types

typeManager

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

Manager keeps the replica up to date and in sync with other replicas.

funcNew

func New(ctxcontext.Context, loggerslog.Logger, dbdatabase.Store, pspubsub.Pubsub, options *Options) (*Manager,error)

New registers the replica with the database and periodically updates to ensureit's healthy. It contacts all other alive replicas to ensure they are reachable.

func (*Manager)All

func (m *Manager) All() []database.Replica

All returns every replica, including itself.

func (*Manager)Close

func (m *Manager) Close()error

func (*Manager)Regional

func (m *Manager) Regional() []database.Replica

Regional returns all replicas in the same region excluding itself.

func (*Manager)Self

func (m *Manager) Self()database.Replica

Self represents the current replica.

func (*Manager)SetCallback

func (m *Manager) SetCallback(callback func())

SetCallback sets a function to execute whenever new peersare refreshed or updated.

typeOptions

type Options struct {IDuuid.UUIDCleanupIntervaltime.DurationUpdateIntervaltime.DurationPeerTimeouttime.DurationRelayAddressstringRegionIDint32TLSConfig       *tls.Config}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp