state

package
v1.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *api.Config) state.State

Create state service

func NewWithInsecureAuth

func NewWithInsecureAuth(insecureAuthConfig *InsecureAuthConfig) state.State

Create insecure state service with auth token

func NewWithSecureAuth

func NewWithSecureAuth(secureAuthConfig *SecureAuthConfig) state.State

Create secure state service with auth token

func NewWithoutAuth

func NewWithoutAuth(consulAddress string) state.State

Create insecure state service without auth token

Types

type InsecureAuthConfig

type InsecureAuthConfig struct {
	Address string
	Token   string
}

type SecureAuthConfig

type SecureAuthConfig struct {
	Address            string
	CAPem              []byte
	CertPEM            []byte
	KeyPEM             []byte
	InsecureSkipVerify bool
	Token              string
}

Jump to

Keyboard shortcuts

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