Documentation
¶
Index ¶
- Variables
- func NewHTMLOtherLabelServer(client OtherLabelClient, stringer func(req, resp interface{}) ([]byte, error)) *htmlOtherLabel
- func NewHandler(grpcAddr string, stringer func(req, resp interface{}) ([]byte, error), ...) (net_http.Handler, error)
- func RegisterOtherLabelServer(s *grpc.Server, srv OtherLabelServer)
- func Serve(httpAddr, grpcAddr string, ...)
- type OtherLabelClient
- type OtherLabelServer
- type UnimplementedOtherLabelServer
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 string = `` /* 21547-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 NewHandler ¶
func NewHandler(grpcAddr string, stringer func(req, resp interface{}) ([]byte, error), opts ...google_golang_org_grpc.DialOption) (net_http.Handler, error)
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)
}
OtherLabelClient is the client API for OtherLabel service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOtherLabelClient ¶
func NewOtherLabelClient(cc *grpc.ClientConn) OtherLabelClient
type OtherLabelServer ¶
OtherLabelServer is the server API for OtherLabel service.
type UnimplementedOtherLabelServer ¶
type UnimplementedOtherLabelServer struct { }
UnimplementedOtherLabelServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.