v1

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 Status

type Status int32
const (
	Status_OK    Status = 0
	Status_Error Status = 1
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) Call

func (*UnimplementedServiceServer) Init

Jump to

Keyboard shortcuts

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