php

package
Version: v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessageName

func MessageName(file *protogen.File, message *protogen.Message) string

MessageName transforms a message name into a PHP compatible one.

func Name

func Name(s string) string

Name generates a name from a proto reference.

func Namespace

func Namespace(file *protogen.File) string

Namespace guesses the namespace of the file according to the following order of precedence:

1. Explicitly set namespace using the "php_namespace" option 2. Package name with dots replaced with backslashes and segments converted to title

func NamespacedName

func NamespacedName(className string, file *protogen.File) string

NamespacedName calculates a fully qualified class name.

Created based on https://github.com/google/protobuf/blob/67952fab2c766ac5eacc15bb78e5af4039a3d398/src/google/protobuf/compiler/php/php_generator.cc#L195

func Path

func Path(file *protogen.File) string

Path guesses the path of the file based on the (internally calculated) namespace.

func PathFromNamespace

func PathFromNamespace(ns string) string

PathFromNamespace guesses the path of the file based on the namespace.

func ServiceName

func ServiceName(file *protogen.File, svc *protogen.Service) string

ServiceName transforms the service name into a PHP compatible one.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL