Versions in this module Expand all Collapse all v0 v0.5.15 Feb 19, 2018 v0.5.0 Feb 19, 2018 Changes in this version + func BftxStructConverstionNO(tx *BFTXTransaction) (*btx.BF_TX, error) + func NVCsvConverterOld(line []string) btx.BF_TX + func RegisterBFSaberServiceServer(s *grpc.Server, srv BFSaberServiceServer) + type AGENTFORMASTER struct + FirstName string + LastName string + Sig string + func (*AGENTFORMASTER) Descriptor() ([]byte, []int) + func (*AGENTFORMASTER) ProtoMessage() + func (m *AGENTFORMASTER) GetFirstName() string + func (m *AGENTFORMASTER) GetLastName() string + func (m *AGENTFORMASTER) GetSig() string + func (m *AGENTFORMASTER) Reset() + func (m *AGENTFORMASTER) String() string + type AGENTFOROWNER struct + ConditionsForCarriage string + FirstName string + LastName string + Sig string + func (*AGENTFOROWNER) Descriptor() ([]byte, []int) + func (*AGENTFOROWNER) ProtoMessage() + func (m *AGENTFOROWNER) GetConditionsForCarriage() string + func (m *AGENTFOROWNER) GetFirstName() string + func (m *AGENTFOROWNER) GetLastName() string + func (m *AGENTFOROWNER) GetSig() string + func (m *AGENTFOROWNER) Reset() + func (m *AGENTFOROWNER) String() string + type BFSaberServiceClient interface + BFTX_Decode func(ctx context.Context, in *BFTX_DecodeRequest, opts ...grpc.CallOption) (*BFTXTransaction, error) + BFTX_Encode func(ctx context.Context, in *BFTX_EncodeRequest, opts ...grpc.CallOption) (*BFTXTransaction, error) + func NewBFSaberServiceClient(cc *grpc.ClientConn) BFSaberServiceClient + type BFSaberServiceServer interface + BFTX_Decode func(context.Context, *BFTX_DecodeRequest) (*BFTXTransaction, error) + BFTX_Encode func(context.Context, *BFTX_EncodeRequest) (*BFTXTransaction, error) + type BFTXEncryptionConfig struct + Encryptionfields []*ENCRYPTIONFIELD + Group string + Publickeys []*PUBLICKEYS + Recipients []string + Version string + func (*BFTXEncryptionConfig) Descriptor() ([]byte, []int) + func (*BFTXEncryptionConfig) ProtoMessage() + func (m *BFTXEncryptionConfig) GetEncryptionfields() []*ENCRYPTIONFIELD + func (m *BFTXEncryptionConfig) GetGroup() string + func (m *BFTXEncryptionConfig) GetPublickeys() []*PUBLICKEYS + func (m *BFTXEncryptionConfig) GetRecipients() []string + func (m *BFTXEncryptionConfig) GetVersion() string + func (m *BFTXEncryptionConfig) Reset() + func (m *BFTXEncryptionConfig) String() string + type BFTXTransaction struct + Amendment string + Id string + Private string + PrivateKey *SignKey + Properties *BFTX_Payload + Signature string + Signhash string + Transmitted bool + Verified bool + func BftxStructConverstionON(tx *btx.BF_TX) (*BFTXTransaction, error) + func NVCsvConverterNew(line []string) *BFTXTransaction + func SaberDecoding(tx *BFTXTransaction, st Saberinput) (*BFTXTransaction, error) + func SaberEncoding(tx *BFTXTransaction, st Saberinput) (*BFTXTransaction, error) + func SaberEncodingTestCase(st Saberinput) (*BFTXTransaction, error) + func (*BFTXTransaction) Descriptor() ([]byte, []int) + func (*BFTXTransaction) ProtoMessage() + func (m *BFTXTransaction) GetAmendment() string + func (m *BFTXTransaction) GetId() string + func (m *BFTXTransaction) GetPrivate() string + func (m *BFTXTransaction) GetPrivateKey() *SignKey + func (m *BFTXTransaction) GetProperties() *BFTX_Payload + func (m *BFTXTransaction) GetSignature() string + func (m *BFTXTransaction) GetSignhash() string + func (m *BFTXTransaction) GetTransmitted() bool + func (m *BFTXTransaction) GetVerified() bool + func (m *BFTXTransaction) Reset() + func (m *BFTXTransaction) String() string + type BFTX_DecodeRequest struct + Bftxtrans *BFTXTransaction + KeyName string + func (*BFTX_DecodeRequest) Descriptor() ([]byte, []int) + func (*BFTX_DecodeRequest) ProtoMessage() + func (m *BFTX_DecodeRequest) GetBftxtrans() *BFTXTransaction + func (m *BFTX_DecodeRequest) GetKeyName() string + func (m *BFTX_DecodeRequest) Reset() + func (m *BFTX_DecodeRequest) String() string + type BFTX_EncodeRequest struct + Bftxconfig *BFTXEncryptionConfig + Bftxtrans *BFTXTransaction + func (*BFTX_EncodeRequest) Descriptor() ([]byte, []int) + func (*BFTX_EncodeRequest) ProtoMessage() + func (m *BFTX_EncodeRequest) GetBftxconfig() *BFTXEncryptionConfig + func (m *BFTX_EncodeRequest) GetBftxtrans() *BFTXTransaction + func (m *BFTX_EncodeRequest) Reset() + func (m *BFTX_EncodeRequest) String() string + type BFTX_Payload struct + AgentForMaster *AGENTFORMASTER + AgentForOwner *AGENTFOROWNER + BolNum string + Consignee string + Container string + ContainerMode string + ContainerSeal string + ContainerType string + DateShipped string + DeliverAgent string + DescOfGoods string + Destination string + EncryptionMetaData string + FreightAdvAmt string + FreightPayableAmt string + GeneralInstructions string + GrossWeight string + HouseBill string + INCOTerms string + IssueDetails *ISSUEDETAILS + MarksAndNumbers string + MasterInfo *MASTERINFO + NotifyAddress string + NumBol string + PackType string + Packages string + PortOfDischarge string + PortOfLoading string + ReceiveAgent string + RefNum string + Shipper string + UnitOfVolume string + UnitOfWeight string + Vessel string + Volume string + func (*BFTX_Payload) Descriptor() ([]byte, []int) + func (*BFTX_Payload) ProtoMessage() + func (m *BFTX_Payload) GetAgentForMaster() *AGENTFORMASTER + func (m *BFTX_Payload) GetAgentForOwner() *AGENTFOROWNER + func (m *BFTX_Payload) GetBolNum() string + func (m *BFTX_Payload) GetConsignee() string + func (m *BFTX_Payload) GetContainer() string + func (m *BFTX_Payload) GetContainerMode() string + func (m *BFTX_Payload) GetContainerSeal() string + func (m *BFTX_Payload) GetContainerType() string + func (m *BFTX_Payload) GetDateShipped() string + func (m *BFTX_Payload) GetDeliverAgent() string + func (m *BFTX_Payload) GetDescOfGoods() string + func (m *BFTX_Payload) GetDestination() string + func (m *BFTX_Payload) GetEncryptionMetaData() string + func (m *BFTX_Payload) GetFreightAdvAmt() string + func (m *BFTX_Payload) GetFreightPayableAmt() string + func (m *BFTX_Payload) GetGeneralInstructions() string + func (m *BFTX_Payload) GetGrossWeight() string + func (m *BFTX_Payload) GetHouseBill() string + func (m *BFTX_Payload) GetINCOTerms() string + func (m *BFTX_Payload) GetIssueDetails() *ISSUEDETAILS + func (m *BFTX_Payload) GetMarksAndNumbers() string + func (m *BFTX_Payload) GetMasterInfo() *MASTERINFO + func (m *BFTX_Payload) GetNotifyAddress() string + func (m *BFTX_Payload) GetNumBol() string + func (m *BFTX_Payload) GetPackType() string + func (m *BFTX_Payload) GetPackages() string + func (m *BFTX_Payload) GetPortOfDischarge() string + func (m *BFTX_Payload) GetPortOfLoading() string + func (m *BFTX_Payload) GetReceiveAgent() string + func (m *BFTX_Payload) GetRefNum() string + func (m *BFTX_Payload) GetShipper() string + func (m *BFTX_Payload) GetUnitOfVolume() string + func (m *BFTX_Payload) GetUnitOfWeight() string + func (m *BFTX_Payload) GetVessel() string + func (m *BFTX_Payload) GetVolume() string + func (m *BFTX_Payload) Reset() + func (m *BFTX_Payload) String() string + type ENCRYPTIONFIELD struct + Authorizeduser []string + Fieldname string + func (*ENCRYPTIONFIELD) Descriptor() ([]byte, []int) + func (*ENCRYPTIONFIELD) ProtoMessage() + func (m *ENCRYPTIONFIELD) GetAuthorizeduser() []string + func (m *ENCRYPTIONFIELD) GetFieldname() string + func (m *ENCRYPTIONFIELD) Reset() + func (m *ENCRYPTIONFIELD) String() string + type ISSUEDETAILS struct + DateOfIssue string + PlaceOfIssue string + func (*ISSUEDETAILS) Descriptor() ([]byte, []int) + func (*ISSUEDETAILS) ProtoMessage() + func (m *ISSUEDETAILS) GetDateOfIssue() string + func (m *ISSUEDETAILS) GetPlaceOfIssue() string + func (m *ISSUEDETAILS) Reset() + func (m *ISSUEDETAILS) String() string + type MASTERINFO struct + FirstName string + LastName string + Sig string + func (*MASTERINFO) Descriptor() ([]byte, []int) + func (*MASTERINFO) ProtoMessage() + func (m *MASTERINFO) GetFirstName() string + func (m *MASTERINFO) GetLastName() string + func (m *MASTERINFO) GetSig() string + func (m *MASTERINFO) Reset() + func (m *MASTERINFO) String() string + type PUBLICKEYS struct + Keyfile string + Userid string + func (*PUBLICKEYS) Descriptor() ([]byte, []int) + func (*PUBLICKEYS) ProtoMessage() + func (m *PUBLICKEYS) GetKeyfile() string + func (m *PUBLICKEYS) GetUserid() string + func (m *PUBLICKEYS) Reset() + func (m *PUBLICKEYS) String() string + type Saberinput struct + KeyName string + func SaberDefaultInput() Saberinput + func Saberinputcli(in *os.File) (st Saberinput) + type SignKey struct + Curve string + D string + X string + Y string + func (*SignKey) Descriptor() ([]byte, []int) + func (*SignKey) ProtoMessage() + func (m *SignKey) GetCurve() string + func (m *SignKey) GetD() string + func (m *SignKey) GetX() string + func (m *SignKey) GetY() string + func (m *SignKey) Reset() + func (m *SignKey) String() string