Documentation
¶
Index ¶
- Variables
- func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
- type CallRequest
- func (*CallRequest) Descriptor() ([]byte, []int)
- func (m *CallRequest) GetArguments() string
- func (m *CallRequest) GetEndpoint() string
- func (m *CallRequest) GetFd() string
- func (*CallRequest) ProtoMessage()
- func (m *CallRequest) Reset()
- func (m *CallRequest) String() string
- func (m *CallRequest) XXX_DiscardUnknown()
- func (m *CallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallRequest) XXX_Merge(src proto.Message)
- func (m *CallRequest) XXX_Size() int
- func (m *CallRequest) XXX_Unmarshal(b []byte) error
- type CallResponse
- func (*CallResponse) Descriptor() ([]byte, []int)
- func (m *CallResponse) GetError() string
- func (m *CallResponse) GetPayload() string
- func (m *CallResponse) GetStatus() Status
- func (*CallResponse) ProtoMessage()
- func (m *CallResponse) Reset()
- func (m *CallResponse) String() string
- func (m *CallResponse) XXX_DiscardUnknown()
- func (m *CallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallResponse) XXX_Merge(src proto.Message)
- func (m *CallResponse) XXX_Size() int
- func (m *CallResponse) XXX_Unmarshal(b []byte) error
- type InitRequest
- func (*InitRequest) Descriptor() ([]byte, []int)
- func (*InitRequest) ProtoMessage()
- func (m *InitRequest) Reset()
- func (m *InitRequest) String() string
- func (m *InitRequest) XXX_DiscardUnknown()
- func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InitRequest) XXX_Merge(src proto.Message)
- func (m *InitRequest) XXX_Size() int
- func (m *InitRequest) XXX_Unmarshal(b []byte) error
- type InitResponse
- func (*InitResponse) Descriptor() ([]byte, []int)
- func (m *InitResponse) GetJsonSchemas() map[string]string
- func (*InitResponse) ProtoMessage()
- func (m *InitResponse) Reset()
- func (m *InitResponse) String() string
- func (m *InitResponse) XXX_DiscardUnknown()
- func (m *InitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InitResponse) XXX_Merge(src proto.Message)
- func (m *InitResponse) XXX_Size() int
- func (m *InitResponse) XXX_Unmarshal(b []byte) error
- type ServiceClient
- type ServiceServer
- type Status
- type UnimplementedServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Status_name = map[int32]string{
0: "OK",
1: "Error",
}
View Source
var Status_value = map[string]int32{
"OK": 0,
"Error": 1,
}
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
Types ¶
type CallRequest ¶
type CallRequest struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"` Fd string `protobuf:"bytes,3,opt,name=fd,proto3" json:"fd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CallRequest) Descriptor ¶
func (*CallRequest) Descriptor() ([]byte, []int)
func (*CallRequest) GetArguments ¶
func (m *CallRequest) GetArguments() string
func (*CallRequest) GetEndpoint ¶
func (m *CallRequest) GetEndpoint() string
func (*CallRequest) GetFd ¶
func (m *CallRequest) GetFd() string
func (*CallRequest) ProtoMessage ¶
func (*CallRequest) ProtoMessage()
func (*CallRequest) Reset ¶
func (m *CallRequest) Reset()
func (*CallRequest) String ¶
func (m *CallRequest) String() string
func (*CallRequest) XXX_DiscardUnknown ¶
func (m *CallRequest) XXX_DiscardUnknown()
func (*CallRequest) XXX_Marshal ¶
func (m *CallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallRequest) XXX_Merge ¶
func (m *CallRequest) XXX_Merge(src proto.Message)
func (*CallRequest) XXX_Size ¶
func (m *CallRequest) XXX_Size() int
func (*CallRequest) XXX_Unmarshal ¶
func (m *CallRequest) XXX_Unmarshal(b []byte) error
type CallResponse ¶
type CallResponse struct { Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=v1.Status" json:"status,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CallResponse) Descriptor ¶
func (*CallResponse) Descriptor() ([]byte, []int)
func (*CallResponse) GetError ¶
func (m *CallResponse) GetError() string
func (*CallResponse) GetPayload ¶
func (m *CallResponse) GetPayload() string
func (*CallResponse) GetStatus ¶
func (m *CallResponse) GetStatus() Status
func (*CallResponse) ProtoMessage ¶
func (*CallResponse) ProtoMessage()
func (*CallResponse) Reset ¶
func (m *CallResponse) Reset()
func (*CallResponse) String ¶
func (m *CallResponse) String() string
func (*CallResponse) XXX_DiscardUnknown ¶
func (m *CallResponse) XXX_DiscardUnknown()
func (*CallResponse) XXX_Marshal ¶
func (m *CallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallResponse) XXX_Merge ¶
func (m *CallResponse) XXX_Merge(src proto.Message)
func (*CallResponse) XXX_Size ¶
func (m *CallResponse) XXX_Size() int
func (*CallResponse) XXX_Unmarshal ¶
func (m *CallResponse) XXX_Unmarshal(b []byte) error
type InitRequest ¶
type InitRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InitRequest) Descriptor ¶
func (*InitRequest) Descriptor() ([]byte, []int)
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) Reset ¶
func (m *InitRequest) Reset()
func (*InitRequest) String ¶
func (m *InitRequest) String() string
func (*InitRequest) XXX_DiscardUnknown ¶
func (m *InitRequest) XXX_DiscardUnknown()
func (*InitRequest) XXX_Marshal ¶
func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitRequest) XXX_Merge ¶
func (m *InitRequest) XXX_Merge(src proto.Message)
func (*InitRequest) XXX_Size ¶
func (m *InitRequest) XXX_Size() int
func (*InitRequest) XXX_Unmarshal ¶
func (m *InitRequest) XXX_Unmarshal(b []byte) error
type InitResponse ¶
type InitResponse struct { JsonSchemas map[string]string `` /* 163-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InitResponse) Descriptor ¶
func (*InitResponse) Descriptor() ([]byte, []int)
func (*InitResponse) GetJsonSchemas ¶
func (m *InitResponse) GetJsonSchemas() map[string]string
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) Reset ¶
func (m *InitResponse) Reset()
func (*InitResponse) String ¶
func (m *InitResponse) String() string
func (*InitResponse) XXX_DiscardUnknown ¶
func (m *InitResponse) XXX_DiscardUnknown()
func (*InitResponse) XXX_Marshal ¶
func (m *InitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitResponse) XXX_Merge ¶
func (m *InitResponse) XXX_Merge(src proto.Message)
func (*InitResponse) XXX_Size ¶
func (m *InitResponse) XXX_Size() int
func (*InitResponse) XXX_Unmarshal ¶
func (m *InitResponse) XXX_Unmarshal(b []byte) error
type ServiceClient ¶
type ServiceClient interface { Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) }
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc *grpc.ClientConn) ServiceClient
type ServiceServer ¶
type ServiceServer interface { Init(context.Context, *InitRequest) (*InitResponse, error) Call(context.Context, *CallRequest) (*CallResponse, error) }
ServiceServer is the server API for Service service.
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceServer) Call ¶
func (*UnimplementedServiceServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error)
func (*UnimplementedServiceServer) Init ¶
func (*UnimplementedServiceServer) Init(ctx context.Context, req *InitRequest) (*InitResponse, error)
Click to show internal directories.
Click to hide internal directories.