Documentation ¶
Overview ¶
Package testimport is a generated protocol buffer package.
It is generated from these files:
import.proto
It has these top-level messages:
Package testimport is a generated protocol buffer package.
It is generated from these files:
import.proto
It has these top-level messages:
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHtmlStringer = func(req, resp interface{}) ([]byte, error) { header := []byte("<p><div class=\"container\"><pre>") data, err := encoding_json.MarshalIndent(resp, "", "\t") if err != nil { return nil, err } footer := []byte("</pre></div></p>") return append(append(header, data...), footer...), nil }
View Source
</body>
</html>
`
View Source
var FormOtherLabel_Produce = `` /* 21070-byte string literal not displayed */
View Source
var Header func(servName, methodName string) string = func(servName, methodName string) string {
return `
<html>
<head>
<title>` + servName + `:` + methodName + `</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</head>
<body>
`
}
Functions ¶
func NewHTMLOtherLabelServer ¶
func NewHTMLOtherLabelServer(client OtherLabelClient, stringer func(req, resp interface{}) ([]byte, error)) *htmlOtherLabel
func RegisterOtherLabelServer ¶
func RegisterOtherLabelServer(s *grpc.Server, srv OtherLabelServer)
func Serve ¶
func Serve(httpAddr, grpcAddr string, stringer func(req, resp interface{}) ([]byte, error), opts ...google_golang_org_grpc.DialOption)
Types ¶
type OtherLabelClient ¶
type OtherLabelClient interface {
Produce(ctx context.Context, in *serve.Album, opts ...grpc.CallOption) (*serve.Album, error)
}
func NewOtherLabelClient ¶
func NewOtherLabelClient(cc *grpc.ClientConn) OtherLabelClient
Click to show internal directories.
Click to hide internal directories.