structural

package
v0.0.0-...-7e26a5e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 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 Adapter

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

func NewAdapter

func NewAdapter(v220 *V220) *Adapter

func (*Adapter) UserV5

func (a *Adapter) UserV5()

type AdapterPhone

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

func NewPhone

func NewPhone(v V5) *AdapterPhone

func (*AdapterPhone) Charge

func (p *AdapterPhone) Charge()

type ChinaShopping

type ChinaShopping struct{}

func (*ChinaShopping) Buy

func (cs *ChinaShopping) Buy(good *Goods)

type Decorator

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

func (*Decorator) Show

func (d *Decorator) Show()

type Facade

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

func (*Facade) MethodOne

func (f *Facade) MethodOne()

func (*Facade) MethodTwo

func (f *Facade) MethodTwo()

type Goods

type Goods struct {
	Kind string
	Fact bool
}

type HuaWei

type HuaWei struct{}

func (*HuaWei) Show

func (hw *HuaWei) Show()

type MoDecorator

type MoDecorator struct {
	Decorator
}

func (*MoDecorator) Show

func (md *MoDecorator) Show()

type Phone

type Phone interface {
	Show()
}

func NewMoDecorator

func NewMoDecorator(phone Phone) Phone

type Proxy

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

func (*Proxy) Buy

func (proxy *Proxy) Buy(good *Goods)

type Shopping

type Shopping interface {
	Buy(good *Goods)
}

func NewProxy

func NewProxy(shopping Shopping) Shopping

type SubSystemA

type SubSystemA struct{}

func (*SubSystemA) MethodA

func (sa *SubSystemA) MethodA()

type SubSystemB

type SubSystemB struct{}

func (*SubSystemB) MethodB

func (sb *SubSystemB) MethodB()

type SubSystemC

type SubSystemC struct{}

func (*SubSystemC) MethodC

func (sb *SubSystemC) MethodC()

type V220

type V220 struct{}

func (*V220) Use220V

func (v *V220) Use220V()

type V5

type V5 interface {
	UserV5()
}

Jump to

Keyboard shortcuts

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