phpyii2

package
v0.0.0-...-fe53453 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	NameSpace string
	FilePath  string
	Methods   []*data.Method
}

Controller is struct of php Controller class

func NewController

func NewController(nameSpace string, methods []*data.Method) *Controller

NewController return a pointer of new controller struct

func (*Controller) Gen

func (p *Controller) Gen(result map[string]string) error

type Enum

type Enum struct {
	*data.EnumData
	NameSpace string
	FilePath  string
}

Error is struct of php error class

func NewEnum

func NewEnum(enum *data.EnumData, baseNameSpace string) *Enum

NewError return a pointer of new Error struct

func (*Enum) Gen

func (p *Enum) Gen(result map[string]string) error

type Error

type Error struct {
	*data.MessageData
	NameSpace string
	FilePath  string
	Enums     []*data.EnumData
}

Error is struct of php error class

func NewError

func NewError(msg *data.MessageData, baseNameSpace string, enums []*data.EnumData) *Error

NewError return a pointer of new Error struct

func (*Error) Gen

func (p *Error) Gen(result map[string]string) error

func (*Error) IsObject

func (p *Error) IsObject(fieldType string) bool

type Handler

type Handler struct {
	Methods       []*data.Method
	NameSpace     string
	BaseNameSpace string
}

Handler is struct of php handler class

func NewHandler

func NewHandler(methods []*data.Method, baseNameSpace string) *Handler

NewHandler return a pointer of new handler struct

func (*Handler) Gen

func (p *Handler) Gen(result map[string]string) error

type Message

type Message struct {
	*data.MessageData
	NameSpace string
	FilePath  string
	Enums     []*data.EnumData
}

Message is struct of php message class

func NewMessage

func NewMessage(msg *data.MessageData, baseNameSpace string, enums []*data.EnumData) *Message

NewMessage return a pointer of new Message struct

func (*Message) Gen

func (p *Message) Gen(result map[string]string) error

func (*Message) IsObject

func (p *Message) IsObject(fieldType string) bool

type Module

type Module struct {
	NameSpace string
	Service   *data.ServiceData
}

Module is struct of php Module class

func NewModule

func NewModule(NameSpace string, service *data.ServiceData) *Module

NewModule return a pointer of new module struct

func (*Module) Gen

func (p *Module) Gen(result map[string]string) error

Jump to

Keyboard shortcuts

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