protocoltype

package
v0.0.0-...-4f71f7c Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtocolDto

type ProtocolDto struct {
	GomodName   string
	Path        string
	ProjectPath string
	Name        string
}

type ProtocolHttpGen

type ProtocolHttpGen interface {
	// contains filtered or unexported methods
}

type ProtocolHttpGenImpl

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

func NewProtocolHttp

func NewProtocolHttp(
	fs database.FileSystem,
	emptyGen emptygen.EmptyGen,
	wireGen wiregen.WireGen,
) *ProtocolHttpGenImpl

func (*ProtocolHttpGenImpl) CreateProtocolInternal

func (s *ProtocolHttpGenImpl) CreateProtocolInternal(dto ProtocolDto) error

create internal/http directory and all of the assets

func (ProtocolHttpGenImpl) CreateProtocolSrc

func (s ProtocolHttpGenImpl) CreateProtocolSrc(dto ProtocolDto) error

func (*ProtocolHttpGenImpl) CreateProtocolSrcBaseFile

func (s *ProtocolHttpGenImpl) CreateProtocolSrcBaseFile(dto ProtocolDto) error

create src/http directory and the assets

type ProtocolType

type ProtocolType interface {
	ProtocolTypeGen
}

type ProtocolTypeGen

type ProtocolTypeGen interface {
	CreateProtocolInternal(dto ProtocolDto) error
	CreateProtocolSrc(dto ProtocolDto) error
	CreateProtocolSrcBaseFile(dto ProtocolDto) error
}

type ProtocolTypeImpl

type ProtocolTypeImpl struct {
	*ProtocolHttpGenImpl
}

func NewProtocolType

func NewProtocolType(
	fs database.FileSystem,
	emptyGen emptygen.EmptyGen,
	wireGen wiregen.WireGen,
) *ProtocolTypeImpl

Jump to

Keyboard shortcuts

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