control

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TemplateValidKey      = "fc:key:%s"
	TemplatePausedAccount = "fc:pause:%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StateClientBase

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

func (*StateClientBase) Stop

func (base *StateClientBase) Stop()

type StateClientReader

type StateClientReader struct {
	StateClientBase
}

func NewReader

func NewReader(endpoints []string, username *string, password *string) (*StateClientReader, error)

func (*StateClientReader) CheckAccountPaused

func (s *StateClientReader) CheckAccountPaused(ctx context.Context, account string) (bool, error)

func (*StateClientReader) CheckKey

func (s *StateClientReader) CheckKey(ctx context.Context, key string) (*string, *string, error)

type StateClientWriter

type StateClientWriter struct {
	StateClientBase
}

func NewWriter

func NewWriter(endpoints []string, username *string, password *string) (*StateClientWriter, error)

func (*StateClientWriter) CreateKey

func (s *StateClientWriter) CreateKey(ctx context.Context, account string, keyID string, key string) error

func (*StateClientWriter) DeleteKey

func (s *StateClientWriter) DeleteKey(ctx context.Context, key string) error

func (*StateClientWriter) PauseAccount

func (s *StateClientWriter) PauseAccount(ctx context.Context, account string) error

func (*StateClientWriter) ResumeAccount

func (s *StateClientWriter) ResumeAccount(ctx context.Context, account string) error

Jump to

Keyboard shortcuts

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