snc

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rand

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

Rand is a concurrency safe rand.Rand. Use NewRand to create a valid Rand.

func NewRand

func NewRand() *Rand

NewRand returns a Rand.

func (*Rand) Float64

func (r *Rand) Float64() float64

Float64 is the same as rand.Rand.Float64

func (*Rand) Intn

func (r *Rand) Intn(n int) int

Intn is the same as rand.Rand.Intn

func (*Rand) Read added in v0.13.2

func (r *Rand) Read(n []byte) (int, error)

Read is the same as rand.Rand.Read

type ServerSettings

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

ServerSettings is a concurrency safe map. A ServerSettings must not be copied after first use. Use NewServerSettings() instead of creating ServerSettings manually.

func NewServerSettings

func NewServerSettings() *ServerSettings

NewServerSettings returns an empty ServerSettings.

func (*ServerSettings) Get

func (s *ServerSettings) Get(key string) interface{}

Get returns the value for key.

func (*ServerSettings) GetOk

func (s *ServerSettings) GetOk(key string) (interface{}, bool)

GetOk returns the value for key.

func (*ServerSettings) Set

func (s *ServerSettings) Set(key string, val interface{})

Set sets the value for key.

Jump to

Keyboard shortcuts

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