rpc_serivce

package
v0.0.0-...-d704c37 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

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) Descriptor() ([]byte, []int)

func (*Token) GetToken

func (m *Token) GetToken() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

func (m *Token) XXX_Unmarshal(b []byte) error

type UnimplementedRedimintServer

type UnimplementedRedimintServer struct {
}

UnimplementedRedimintServer can be embedded to have forward compatible implementations.

func (*UnimplementedRedimintServer) Auth

func (*UnimplementedRedimintServer) Execute

func (*UnimplementedRedimintServer) ExecuteAsync

func (*UnimplementedRedimintServer) ExecuteWithPrivateKey

func (*UnimplementedRedimintServer) ExecuteWithPrivateKey(ctx context.Context, req *CommandRequest) (*ExecuteResponse, error)

func (*UnimplementedRedimintServer) Query

func (*UnimplementedRedimintServer) QueryPrivateData

func (*UnimplementedRedimintServer) QueryPrivateDataWithAddress

func (*UnimplementedRedimintServer) QueryPrivateDataWithAddress(ctx context.Context, req *QueryPrivateWithAddrRequest) (*QueryResponse, error)

Jump to

Keyboard shortcuts

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