builder

package
v0.0.0-...-6b0544b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildProcess

type BuildProcess interface {
	SetWheels() BuildProcess
	SetSeats() BuildProcess
	SetStructure() BuildProcess
	GetVehicle() VehicleProduct
}

type CarBuilder

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

Car Builder

func (*CarBuilder) GetVehicle

func (c *CarBuilder) GetVehicle() VehicleProduct

func (*CarBuilder) SetSeats

func (c *CarBuilder) SetSeats() BuildProcess

func (*CarBuilder) SetStructure

func (c *CarBuilder) SetStructure() BuildProcess

func (*CarBuilder) SetWheels

func (c *CarBuilder) SetWheels() BuildProcess

type ManufactureDirector

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

Manufacture Director

func (*ManufactureDirector) Construct

func (m *ManufactureDirector) Construct()

func (*ManufactureDirector) SetBuilder

func (m *ManufactureDirector) SetBuilder(b BuildProcess)

type MotorBikeBuilder

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

MotorBike Builder

func (*MotorBikeBuilder) GetVehicle

func (m *MotorBikeBuilder) GetVehicle() VehicleProduct

func (*MotorBikeBuilder) SetSeats

func (m *MotorBikeBuilder) SetSeats() BuildProcess

func (*MotorBikeBuilder) SetStructure

func (m *MotorBikeBuilder) SetStructure() BuildProcess

func (*MotorBikeBuilder) SetWheels

func (m *MotorBikeBuilder) SetWheels() BuildProcess

type VehicleProduct

type VehicleProduct struct {
	Wheels    int
	Seats     int
	Structure string
}

Vehicle

Jump to

Keyboard shortcuts

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