Documentation ¶
Overview ¶
Package profile is a generated protocol buffer package.
It is generated from these files:
echo.proto
It has these top-level messages:
StringMessage
Package profile is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterProfileHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProfileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProfileServer(s *grpc.Server, srv ProfileServer)
- type ProfileClient
- type ProfileServer
- type StringMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProfileHandler ¶
func RegisterProfileHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProfileHandler registers the http handlers for service Profile to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProfileHandlerFromEndpoint ¶
func RegisterProfileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProfileHandlerFromEndpoint is same as RegisterProfileHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProfileServer ¶
func RegisterProfileServer(s *grpc.Server, srv ProfileServer)
Types ¶
type ProfileClient ¶
type ProfileClient interface { // rpc Echo(StringMessage) returns (StringMessage) {} Echo(ctx context.Context, in *StringMessage, opts ...grpc.CallOption) (*StringMessage, error) }
func NewProfileClient ¶
func NewProfileClient(cc *grpc.ClientConn) ProfileClient
type ProfileServer ¶
type ProfileServer interface { // rpc Echo(StringMessage) returns (StringMessage) {} Echo(context.Context, *StringMessage) (*StringMessage, error) }
type StringMessage ¶
type StringMessage struct {
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}
func (*StringMessage) Descriptor ¶
func (*StringMessage) Descriptor() ([]byte, []int)
func (*StringMessage) GetValue ¶
func (m *StringMessage) GetValue() string
func (*StringMessage) ProtoMessage ¶
func (*StringMessage) ProtoMessage()
func (*StringMessage) Reset ¶
func (m *StringMessage) Reset()
func (*StringMessage) String ¶
func (m *StringMessage) String() string
Click to show internal directories.
Click to hide internal directories.