php

package
v0.0.0-...-ed83df0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessageName

func MessageName(msg *typemap.MessageDefinition) 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 *descriptor.FileDescriptorProto) 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 Path

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

ServiceName transforms the service name into a PHP compatible one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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