Documentation ¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
dfss/dfssc/api/client.proto
It has these top-level messages:
Context Promise Signature Hello
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterClientServer ¶
func RegisterClientServer(s *grpc.Server, srv ClientServer)
Types ¶
type ClientClient ¶
type ClientClient interface { TreatPromise(ctx context.Context, in *Promise, opts ...grpc.CallOption) (*api1.ErrorCode, error) TreatSignature(ctx context.Context, in *Signature, opts ...grpc.CallOption) (*api1.ErrorCode, error) Discover(ctx context.Context, in *Hello, opts ...grpc.CallOption) (*Hello, error) }
func NewClientClient ¶
func NewClientClient(cc *grpc.ClientConn) ClientClient
type ClientServer ¶
type Context ¶
type Context struct { RecipientKeyHash []byte `protobuf:"bytes,1,opt,name=recipientKeyHash,proto3" json:"recipientKeyHash,omitempty"` SenderKeyHash []byte `protobuf:"bytes,2,opt,name=senderKeyHash,proto3" json:"senderKeyHash,omitempty"` Sequence []uint32 `protobuf:"varint,3,rep,name=sequence" json:"sequence,omitempty"` Signers [][]byte `protobuf:"bytes,4,rep,name=signers,proto3" json:"signers,omitempty"` ContractDocumentHash []byte `protobuf:"bytes,5,opt,name=contractDocumentHash,proto3" json:"contractDocumentHash,omitempty"` SignatureUUID string `protobuf:"bytes,6,opt,name=signatureUUID" json:"signatureUUID,omitempty"` SignedHash []byte `protobuf:"bytes,7,opt,name=signedHash,proto3" json:"signedHash,omitempty"` }
func (*Context) Descriptor ¶
func (*Context) ProtoMessage ¶
func (*Context) ProtoMessage()
type Hello ¶
type Hello struct {
Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}
Hello message is used when discovering peers. It contains the current version of the software.
func (*Hello) Descriptor ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
type Promise ¶
type Promise struct { Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` Index uint32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` }
Promise message contains all the required information to verify the identity of the sender and receiver, and the actual promise
func (*Promise) Descriptor ¶
func (*Promise) GetContext ¶
func (*Promise) ProtoMessage ¶
func (*Promise) ProtoMessage()
type Signature ¶
type Signature struct { Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
Signature message contains all the required information to verify the identity of the sender and receiver, and the actual signature
func (*Signature) Descriptor ¶
func (*Signature) GetContext ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.