Singleton

package
v0.0.0-...-48c9e09 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SingletonDoubleLock

type SingletonDoubleLock struct{}

func GetInstanceSingletonDoubleLock

func GetInstanceSingletonDoubleLock() *SingletonDoubleLock

type SingletonEager

type SingletonEager struct{}

func GetInstanceSingletonEager

func GetInstanceSingletonEager() *SingletonEager

获取饿汉模式对象

type SingletonLazy

type SingletonLazy struct{}

func GetInstanceSingletonLazy

func GetInstanceSingletonLazy() *SingletonLazy

获取懒汉模式对象

type SingletonLazyLock

type SingletonLazyLock struct{}

func GetInstanceSingletonLazyLock

func GetInstanceSingletonLazyLock() *SingletonLazyLock

type SingletonOnce

type SingletonOnce struct{}

func GetInstanceSingletonOnce

func GetInstanceSingletonOnce() *SingletonOnce

Jump to

Keyboard shortcuts

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