Documentation ¶
Index ¶
- func RegisterRedimintServer(s *grpc.Server, srv RedimintServer)
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)
- func (m *AuthRequest) GetPassword() string
- func (*AuthRequest) ProtoMessage()
- func (m *AuthRequest) Reset()
- func (m *AuthRequest) String() string
- func (m *AuthRequest) XXX_DiscardUnknown()
- func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthRequest) XXX_Merge(src proto.Message)
- func (m *AuthRequest) XXX_Size() int
- func (m *AuthRequest) XXX_Unmarshal(b []byte) error
- type CommandRequest
- func (*CommandRequest) Descriptor() ([]byte, []int)
- func (m *CommandRequest) GetCmd() string
- func (*CommandRequest) ProtoMessage()
- func (m *CommandRequest) Reset()
- func (m *CommandRequest) String() string
- func (m *CommandRequest) XXX_DiscardUnknown()
- func (m *CommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommandRequest) XXX_Merge(src proto.Message)
- func (m *CommandRequest) XXX_Size() int
- func (m *CommandRequest) XXX_Unmarshal(b []byte) error
- type ExecuteAsyncResponse
- func (*ExecuteAsyncResponse) Descriptor() ([]byte, []int)
- func (m *ExecuteAsyncResponse) GetCmd() string
- func (m *ExecuteAsyncResponse) GetHash() string
- func (m *ExecuteAsyncResponse) GetSequence() string
- func (m *ExecuteAsyncResponse) GetSignature() string
- func (m *ExecuteAsyncResponse) GetTimeStamp() string
- func (*ExecuteAsyncResponse) ProtoMessage()
- func (m *ExecuteAsyncResponse) Reset()
- func (m *ExecuteAsyncResponse) String() string
- func (m *ExecuteAsyncResponse) XXX_DiscardUnknown()
- func (m *ExecuteAsyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecuteAsyncResponse) XXX_Merge(src proto.Message)
- func (m *ExecuteAsyncResponse) XXX_Size() int
- func (m *ExecuteAsyncResponse) XXX_Unmarshal(b []byte) error
- type ExecuteResponse
- func (*ExecuteResponse) Descriptor() ([]byte, []int)
- func (m *ExecuteResponse) GetCmd() string
- func (m *ExecuteResponse) GetExecuteResult() string
- func (m *ExecuteResponse) GetHash() string
- func (m *ExecuteResponse) GetHeight() int64
- func (m *ExecuteResponse) GetSequence() string
- func (m *ExecuteResponse) GetSignature() string
- func (m *ExecuteResponse) GetTimeStamp() string
- func (*ExecuteResponse) ProtoMessage()
- func (m *ExecuteResponse) Reset()
- func (m *ExecuteResponse) String() string
- func (m *ExecuteResponse) XXX_DiscardUnknown()
- func (m *ExecuteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecuteResponse) XXX_Merge(src proto.Message)
- func (m *ExecuteResponse) XXX_Size() int
- func (m *ExecuteResponse) XXX_Unmarshal(b []byte) error
- type QueryPrivateWithAddrRequest
- func (*QueryPrivateWithAddrRequest) Descriptor() ([]byte, []int)
- func (m *QueryPrivateWithAddrRequest) GetAddress() string
- func (m *QueryPrivateWithAddrRequest) GetCmd() string
- func (*QueryPrivateWithAddrRequest) ProtoMessage()
- func (m *QueryPrivateWithAddrRequest) Reset()
- func (m *QueryPrivateWithAddrRequest) String() string
- func (m *QueryPrivateWithAddrRequest) XXX_DiscardUnknown()
- func (m *QueryPrivateWithAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPrivateWithAddrRequest) XXX_Merge(src proto.Message)
- func (m *QueryPrivateWithAddrRequest) XXX_Size() int
- func (m *QueryPrivateWithAddrRequest) XXX_Unmarshal(b []byte) error
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)
- func (m *QueryResponse) GetResult() string
- func (*QueryResponse) ProtoMessage()
- func (m *QueryResponse) Reset()
- func (m *QueryResponse) String() string
- func (m *QueryResponse) XXX_DiscardUnknown()
- func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResponse) XXX_Merge(src proto.Message)
- func (m *QueryResponse) XXX_Size() int
- func (m *QueryResponse) XXX_Unmarshal(b []byte) error
- type RedimintClient
- type RedimintServer
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetToken() string
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type UnimplementedRedimintServer
- func (*UnimplementedRedimintServer) Auth(ctx context.Context, req *AuthRequest) (*Token, error)
- func (*UnimplementedRedimintServer) Execute(ctx context.Context, req *CommandRequest) (*ExecuteResponse, error)
- func (*UnimplementedRedimintServer) ExecuteAsync(ctx context.Context, req *CommandRequest) (*ExecuteAsyncResponse, error)
- func (*UnimplementedRedimintServer) ExecuteWithPrivateKey(ctx context.Context, req *CommandRequest) (*ExecuteResponse, error)
- func (*UnimplementedRedimintServer) Query(ctx context.Context, req *CommandRequest) (*QueryResponse, error)
- func (*UnimplementedRedimintServer) QueryPrivateData(ctx context.Context, req *CommandRequest) (*QueryResponse, error)
- func (*UnimplementedRedimintServer) QueryPrivateDataWithAddress(ctx context.Context, req *QueryPrivateWithAddrRequest) (*QueryResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRedimintServer ¶
func RegisterRedimintServer(s *grpc.Server, srv RedimintServer)
Types ¶
type AuthRequest ¶
type AuthRequest struct { Password string `protobuf:"bytes,1,opt,name=Password,proto3" json:"Password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthRequest) Descriptor ¶
func (*AuthRequest) Descriptor() ([]byte, []int)
func (*AuthRequest) GetPassword ¶
func (m *AuthRequest) GetPassword() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) Reset ¶
func (m *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (m *AuthRequest) String() string
func (*AuthRequest) XXX_DiscardUnknown ¶
func (m *AuthRequest) XXX_DiscardUnknown()
func (*AuthRequest) XXX_Marshal ¶
func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthRequest) XXX_Merge ¶
func (m *AuthRequest) XXX_Merge(src proto.Message)
func (*AuthRequest) XXX_Size ¶
func (m *AuthRequest) XXX_Size() int
func (*AuthRequest) XXX_Unmarshal ¶
func (m *AuthRequest) XXX_Unmarshal(b []byte) error
type CommandRequest ¶
type CommandRequest struct { Cmd string `protobuf:"bytes,1,opt,name=Cmd,proto3" json:"Cmd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommandRequest) Descriptor ¶
func (*CommandRequest) Descriptor() ([]byte, []int)
func (*CommandRequest) GetCmd ¶
func (m *CommandRequest) GetCmd() string
func (*CommandRequest) ProtoMessage ¶
func (*CommandRequest) ProtoMessage()
func (*CommandRequest) Reset ¶
func (m *CommandRequest) Reset()
func (*CommandRequest) String ¶
func (m *CommandRequest) String() string
func (*CommandRequest) XXX_DiscardUnknown ¶
func (m *CommandRequest) XXX_DiscardUnknown()
func (*CommandRequest) XXX_Marshal ¶
func (m *CommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommandRequest) XXX_Merge ¶
func (m *CommandRequest) XXX_Merge(src proto.Message)
func (*CommandRequest) XXX_Size ¶
func (m *CommandRequest) XXX_Size() int
func (*CommandRequest) XXX_Unmarshal ¶
func (m *CommandRequest) XXX_Unmarshal(b []byte) error
type ExecuteAsyncResponse ¶
type ExecuteAsyncResponse struct { Cmd string `protobuf:"bytes,1,opt,name=Cmd,proto3" json:"Cmd,omitempty"` Signature string `protobuf:"bytes,2,opt,name=Signature,proto3" json:"Signature,omitempty"` Sequence string `protobuf:"bytes,3,opt,name=Sequence,proto3" json:"Sequence,omitempty"` TimeStamp string `protobuf:"bytes,4,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Hash string `protobuf:"bytes,5,opt,name=Hash,proto3" json:"Hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExecuteAsyncResponse) Descriptor ¶
func (*ExecuteAsyncResponse) Descriptor() ([]byte, []int)
func (*ExecuteAsyncResponse) GetCmd ¶
func (m *ExecuteAsyncResponse) GetCmd() string
func (*ExecuteAsyncResponse) GetHash ¶
func (m *ExecuteAsyncResponse) GetHash() string
func (*ExecuteAsyncResponse) GetSequence ¶
func (m *ExecuteAsyncResponse) GetSequence() string
func (*ExecuteAsyncResponse) GetSignature ¶
func (m *ExecuteAsyncResponse) GetSignature() string
func (*ExecuteAsyncResponse) GetTimeStamp ¶
func (m *ExecuteAsyncResponse) GetTimeStamp() string
func (*ExecuteAsyncResponse) ProtoMessage ¶
func (*ExecuteAsyncResponse) ProtoMessage()
func (*ExecuteAsyncResponse) Reset ¶
func (m *ExecuteAsyncResponse) Reset()
func (*ExecuteAsyncResponse) String ¶
func (m *ExecuteAsyncResponse) String() string
func (*ExecuteAsyncResponse) XXX_DiscardUnknown ¶
func (m *ExecuteAsyncResponse) XXX_DiscardUnknown()
func (*ExecuteAsyncResponse) XXX_Marshal ¶
func (m *ExecuteAsyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecuteAsyncResponse) XXX_Merge ¶
func (m *ExecuteAsyncResponse) XXX_Merge(src proto.Message)
func (*ExecuteAsyncResponse) XXX_Size ¶
func (m *ExecuteAsyncResponse) XXX_Size() int
func (*ExecuteAsyncResponse) XXX_Unmarshal ¶
func (m *ExecuteAsyncResponse) XXX_Unmarshal(b []byte) error
type ExecuteResponse ¶
type ExecuteResponse struct { Cmd string `protobuf:"bytes,1,opt,name=Cmd,proto3" json:"Cmd,omitempty"` ExecuteResult string `protobuf:"bytes,2,opt,name=ExecuteResult,proto3" json:"ExecuteResult,omitempty"` Signature string `protobuf:"bytes,3,opt,name=Signature,proto3" json:"Signature,omitempty"` Sequence string `protobuf:"bytes,4,opt,name=Sequence,proto3" json:"Sequence,omitempty"` TimeStamp string `protobuf:"bytes,5,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Hash string `protobuf:"bytes,6,opt,name=Hash,proto3" json:"Hash,omitempty"` Height int64 `protobuf:"varint,7,opt,name=Height,proto3" json:"Height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExecuteResponse) Descriptor ¶
func (*ExecuteResponse) Descriptor() ([]byte, []int)
func (*ExecuteResponse) GetCmd ¶
func (m *ExecuteResponse) GetCmd() string
func (*ExecuteResponse) GetExecuteResult ¶
func (m *ExecuteResponse) GetExecuteResult() string
func (*ExecuteResponse) GetHash ¶
func (m *ExecuteResponse) GetHash() string
func (*ExecuteResponse) GetHeight ¶
func (m *ExecuteResponse) GetHeight() int64
func (*ExecuteResponse) GetSequence ¶
func (m *ExecuteResponse) GetSequence() string
func (*ExecuteResponse) GetSignature ¶
func (m *ExecuteResponse) GetSignature() string
func (*ExecuteResponse) GetTimeStamp ¶
func (m *ExecuteResponse) GetTimeStamp() string
func (*ExecuteResponse) ProtoMessage ¶
func (*ExecuteResponse) ProtoMessage()
func (*ExecuteResponse) Reset ¶
func (m *ExecuteResponse) Reset()
func (*ExecuteResponse) String ¶
func (m *ExecuteResponse) String() string
func (*ExecuteResponse) XXX_DiscardUnknown ¶
func (m *ExecuteResponse) XXX_DiscardUnknown()
func (*ExecuteResponse) XXX_Marshal ¶
func (m *ExecuteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecuteResponse) XXX_Merge ¶
func (m *ExecuteResponse) XXX_Merge(src proto.Message)
func (*ExecuteResponse) XXX_Size ¶
func (m *ExecuteResponse) XXX_Size() int
func (*ExecuteResponse) XXX_Unmarshal ¶
func (m *ExecuteResponse) XXX_Unmarshal(b []byte) error
type QueryPrivateWithAddrRequest ¶
type QueryPrivateWithAddrRequest struct { Cmd string `protobuf:"bytes,1,opt,name=Cmd,proto3" json:"Cmd,omitempty"` Address string `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryPrivateWithAddrRequest) Descriptor ¶
func (*QueryPrivateWithAddrRequest) Descriptor() ([]byte, []int)
func (*QueryPrivateWithAddrRequest) GetAddress ¶
func (m *QueryPrivateWithAddrRequest) GetAddress() string
func (*QueryPrivateWithAddrRequest) GetCmd ¶
func (m *QueryPrivateWithAddrRequest) GetCmd() string
func (*QueryPrivateWithAddrRequest) ProtoMessage ¶
func (*QueryPrivateWithAddrRequest) ProtoMessage()
func (*QueryPrivateWithAddrRequest) Reset ¶
func (m *QueryPrivateWithAddrRequest) Reset()
func (*QueryPrivateWithAddrRequest) String ¶
func (m *QueryPrivateWithAddrRequest) String() string
func (*QueryPrivateWithAddrRequest) XXX_DiscardUnknown ¶
func (m *QueryPrivateWithAddrRequest) XXX_DiscardUnknown()
func (*QueryPrivateWithAddrRequest) XXX_Marshal ¶
func (m *QueryPrivateWithAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPrivateWithAddrRequest) XXX_Merge ¶
func (m *QueryPrivateWithAddrRequest) XXX_Merge(src proto.Message)
func (*QueryPrivateWithAddrRequest) XXX_Size ¶
func (m *QueryPrivateWithAddrRequest) XXX_Size() int
func (*QueryPrivateWithAddrRequest) XXX_Unmarshal ¶
func (m *QueryPrivateWithAddrRequest) XXX_Unmarshal(b []byte) error
type QueryResponse ¶
type QueryResponse struct { Result string `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) GetResult ¶
func (m *QueryResponse) GetResult() string
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (m *QueryResponse) String() string
func (*QueryResponse) XXX_DiscardUnknown ¶
func (m *QueryResponse) XXX_DiscardUnknown()
func (*QueryResponse) XXX_Marshal ¶
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponse) XXX_Merge ¶
func (m *QueryResponse) XXX_Merge(src proto.Message)
func (*QueryResponse) XXX_Size ¶
func (m *QueryResponse) XXX_Size() int
func (*QueryResponse) XXX_Unmarshal ¶
func (m *QueryResponse) XXX_Unmarshal(b []byte) error
type RedimintClient ¶
type RedimintClient interface { Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*Token, error) Query(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*QueryResponse, error) QueryPrivateData(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*QueryResponse, error) QueryPrivateDataWithAddress(ctx context.Context, in *QueryPrivateWithAddrRequest, opts ...grpc.CallOption) (*QueryResponse, error) Execute(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) ExecuteAsync(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*ExecuteAsyncResponse, error) ExecuteWithPrivateKey(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) }
RedimintClient is the client API for Redimint service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRedimintClient ¶
func NewRedimintClient(cc *grpc.ClientConn) RedimintClient
type RedimintServer ¶
type RedimintServer interface { Auth(context.Context, *AuthRequest) (*Token, error) Query(context.Context, *CommandRequest) (*QueryResponse, error) QueryPrivateData(context.Context, *CommandRequest) (*QueryResponse, error) QueryPrivateDataWithAddress(context.Context, *QueryPrivateWithAddrRequest) (*QueryResponse, error) Execute(context.Context, *CommandRequest) (*ExecuteResponse, error) ExecuteAsync(context.Context, *CommandRequest) (*ExecuteAsyncResponse, error) ExecuteWithPrivateKey(context.Context, *CommandRequest) (*ExecuteResponse, error) }
RedimintServer is the server API for Redimint service.
type Token ¶
type Token struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Token) Descriptor ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type UnimplementedRedimintServer ¶
type UnimplementedRedimintServer struct { }
UnimplementedRedimintServer can be embedded to have forward compatible implementations.
func (*UnimplementedRedimintServer) Auth ¶
func (*UnimplementedRedimintServer) Auth(ctx context.Context, req *AuthRequest) (*Token, error)
func (*UnimplementedRedimintServer) Execute ¶
func (*UnimplementedRedimintServer) Execute(ctx context.Context, req *CommandRequest) (*ExecuteResponse, error)
func (*UnimplementedRedimintServer) ExecuteAsync ¶
func (*UnimplementedRedimintServer) ExecuteAsync(ctx context.Context, req *CommandRequest) (*ExecuteAsyncResponse, error)
func (*UnimplementedRedimintServer) ExecuteWithPrivateKey ¶
func (*UnimplementedRedimintServer) ExecuteWithPrivateKey(ctx context.Context, req *CommandRequest) (*ExecuteResponse, error)
func (*UnimplementedRedimintServer) Query ¶
func (*UnimplementedRedimintServer) Query(ctx context.Context, req *CommandRequest) (*QueryResponse, error)
func (*UnimplementedRedimintServer) QueryPrivateData ¶
func (*UnimplementedRedimintServer) QueryPrivateData(ctx context.Context, req *CommandRequest) (*QueryResponse, error)
func (*UnimplementedRedimintServer) QueryPrivateDataWithAddress ¶
func (*UnimplementedRedimintServer) QueryPrivateDataWithAddress(ctx context.Context, req *QueryPrivateWithAddrRequest) (*QueryResponse, error)
Click to show internal directories.
Click to hide internal directories.