Documentation ¶
Overview ¶
Package saberservice is a generated protocol buffer package.
It is generated from these files:
saber.proto
It has these top-level messages:
BFTX_EncodeRequest BFTX_DecodeRequest BFTXTransaction SignKey BFTX_Payload ISSUEDETAILS MASTERINFO AGENTFORMASTER AGENTFOROWNER BFTXEncryptionConfig ENCRYPTIONFIELD PUBLICKEYS
Index ¶
- func BftxStructConverstionNO(tx *BFTXTransaction) (*btx.BF_TX, error)
- func NVCsvConverterOld(line []string) btx.BF_TX
- func RegisterBFSaberServiceServer(s *grpc.Server, srv BFSaberServiceServer)
- type AGENTFORMASTER
- type AGENTFOROWNER
- func (*AGENTFOROWNER) Descriptor() ([]byte, []int)
- func (m *AGENTFOROWNER) GetConditionsForCarriage() string
- func (m *AGENTFOROWNER) GetFirstName() string
- func (m *AGENTFOROWNER) GetLastName() string
- func (m *AGENTFOROWNER) GetSig() string
- func (*AGENTFOROWNER) ProtoMessage()
- func (m *AGENTFOROWNER) Reset()
- func (m *AGENTFOROWNER) String() string
- type BFSaberServiceClient
- type BFSaberServiceServer
- type BFTXEncryptionConfig
- func (*BFTXEncryptionConfig) Descriptor() ([]byte, []int)
- 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 (*BFTXEncryptionConfig) ProtoMessage()
- func (m *BFTXEncryptionConfig) Reset()
- func (m *BFTXEncryptionConfig) String() string
- type BFTXTransaction
- 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 (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 (*BFTXTransaction) ProtoMessage()
- func (m *BFTXTransaction) Reset()
- func (m *BFTXTransaction) String() string
- type BFTX_DecodeRequest
- type BFTX_EncodeRequest
- func (*BFTX_EncodeRequest) Descriptor() ([]byte, []int)
- func (m *BFTX_EncodeRequest) GetBftxconfig() *BFTXEncryptionConfig
- func (m *BFTX_EncodeRequest) GetBftxtrans() *BFTXTransaction
- func (*BFTX_EncodeRequest) ProtoMessage()
- func (m *BFTX_EncodeRequest) Reset()
- func (m *BFTX_EncodeRequest) String() string
- type BFTX_Payload
- func (*BFTX_Payload) Descriptor() ([]byte, []int)
- 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 (*BFTX_Payload) ProtoMessage()
- func (m *BFTX_Payload) Reset()
- func (m *BFTX_Payload) String() string
- type ENCRYPTIONFIELD
- type ISSUEDETAILS
- type MASTERINFO
- type PUBLICKEYS
- type Saberinput
- type SignKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BftxStructConverstionNO ¶
func BftxStructConverstionNO(tx *BFTXTransaction) (*btx.BF_TX, error)
BftxStructConverstionNO (New to Old) is a function that convert the new *BFTXTransaction structure to old struct *BF_TX. These two structure is duplicated somehow. This function is used for temporal conversion. since this is just for temporal usage, I will just use json marshal and unmarshal to convert structures
func NVCsvConverterOld ¶
NVCsvConverterOld is a function that convert an array of bftx parameters to BF_TX structure. This is used for the converting the Lading.csv to bftx.BFTX --------------------------------------------------------------------------------
func RegisterBFSaberServiceServer ¶
func RegisterBFSaberServiceServer(s *grpc.Server, srv BFSaberServiceServer)
Types ¶
type AGENTFORMASTER ¶
type AGENTFORMASTER struct { FirstName string `protobuf:"bytes,1,opt,name=FirstName" json:"FirstName,omitempty"` LastName string `protobuf:"bytes,2,opt,name=LastName" json:"LastName,omitempty"` Sig string `protobuf:"bytes,3,opt,name=Sig" json:"Sig,omitempty"` }
func (*AGENTFORMASTER) Descriptor ¶
func (*AGENTFORMASTER) Descriptor() ([]byte, []int)
func (*AGENTFORMASTER) GetFirstName ¶
func (m *AGENTFORMASTER) GetFirstName() string
func (*AGENTFORMASTER) GetLastName ¶
func (m *AGENTFORMASTER) GetLastName() string
func (*AGENTFORMASTER) GetSig ¶
func (m *AGENTFORMASTER) GetSig() string
func (*AGENTFORMASTER) ProtoMessage ¶
func (*AGENTFORMASTER) ProtoMessage()
func (*AGENTFORMASTER) Reset ¶
func (m *AGENTFORMASTER) Reset()
func (*AGENTFORMASTER) String ¶
func (m *AGENTFORMASTER) String() string
type AGENTFOROWNER ¶
type AGENTFOROWNER struct { FirstName string `protobuf:"bytes,1,opt,name=FirstName" json:"FirstName,omitempty"` LastName string `protobuf:"bytes,2,opt,name=LastName" json:"LastName,omitempty"` Sig string `protobuf:"bytes,3,opt,name=Sig" json:"Sig,omitempty"` ConditionsForCarriage string `protobuf:"bytes,4,opt,name=ConditionsForCarriage" json:"ConditionsForCarriage,omitempty"` }
func (*AGENTFOROWNER) Descriptor ¶
func (*AGENTFOROWNER) Descriptor() ([]byte, []int)
func (*AGENTFOROWNER) GetConditionsForCarriage ¶
func (m *AGENTFOROWNER) GetConditionsForCarriage() string
func (*AGENTFOROWNER) GetFirstName ¶
func (m *AGENTFOROWNER) GetFirstName() string
func (*AGENTFOROWNER) GetLastName ¶
func (m *AGENTFOROWNER) GetLastName() string
func (*AGENTFOROWNER) GetSig ¶
func (m *AGENTFOROWNER) GetSig() string
func (*AGENTFOROWNER) ProtoMessage ¶
func (*AGENTFOROWNER) ProtoMessage()
func (*AGENTFOROWNER) Reset ¶
func (m *AGENTFOROWNER) Reset()
func (*AGENTFOROWNER) String ¶
func (m *AGENTFOROWNER) String() string
type BFSaberServiceClient ¶
type BFSaberServiceClient interface { // request a service of encryption BFTX_Encode(ctx context.Context, in *BFTX_EncodeRequest, opts ...grpc.CallOption) (*BFTXTransaction, error) // request a service for decryption BFTX_Decode(ctx context.Context, in *BFTX_DecodeRequest, opts ...grpc.CallOption) (*BFTXTransaction, error) }
func NewBFSaberServiceClient ¶
func NewBFSaberServiceClient(cc *grpc.ClientConn) BFSaberServiceClient
type BFSaberServiceServer ¶
type BFSaberServiceServer interface { // request a service of encryption BFTX_Encode(context.Context, *BFTX_EncodeRequest) (*BFTXTransaction, error) // request a service for decryption BFTX_Decode(context.Context, *BFTX_DecodeRequest) (*BFTXTransaction, error) }
type BFTXEncryptionConfig ¶
type BFTXEncryptionConfig struct { Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` Group string `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"` Recipients []string `protobuf:"bytes,3,rep,name=recipients" json:"recipients,omitempty"` Encryptionfields []*ENCRYPTIONFIELD `protobuf:"bytes,4,rep,name=encryptionfields" json:"encryptionfields,omitempty"` Publickeys []*PUBLICKEYS `protobuf:"bytes,5,rep,name=publickeys" json:"publickeys,omitempty"` }
func (*BFTXEncryptionConfig) Descriptor ¶
func (*BFTXEncryptionConfig) Descriptor() ([]byte, []int)
func (*BFTXEncryptionConfig) GetEncryptionfields ¶
func (m *BFTXEncryptionConfig) GetEncryptionfields() []*ENCRYPTIONFIELD
func (*BFTXEncryptionConfig) GetGroup ¶
func (m *BFTXEncryptionConfig) GetGroup() string
func (*BFTXEncryptionConfig) GetPublickeys ¶
func (m *BFTXEncryptionConfig) GetPublickeys() []*PUBLICKEYS
func (*BFTXEncryptionConfig) GetRecipients ¶
func (m *BFTXEncryptionConfig) GetRecipients() []string
func (*BFTXEncryptionConfig) GetVersion ¶
func (m *BFTXEncryptionConfig) GetVersion() string
func (*BFTXEncryptionConfig) ProtoMessage ¶
func (*BFTXEncryptionConfig) ProtoMessage()
func (*BFTXEncryptionConfig) Reset ¶
func (m *BFTXEncryptionConfig) Reset()
func (*BFTXEncryptionConfig) String ¶
func (m *BFTXEncryptionConfig) String() string
type BFTXTransaction ¶
type BFTXTransaction struct { Properties *BFTX_Payload `protobuf:"bytes,1,opt,name=Properties" json:"Properties,omitempty"` Id string `protobuf:"bytes,2,opt,name=Id" json:"Id,omitempty"` PrivateKey *SignKey `protobuf:"bytes,3,opt,name=PrivateKey" json:"PrivateKey,omitempty"` Signhash string `protobuf:"bytes,4,opt,name=Signhash" json:"Signhash,omitempty"` Signature string `protobuf:"bytes,5,opt,name=Signature" json:"Signature,omitempty"` Verified bool `protobuf:"varint,6,opt,name=Verified" json:"Verified,omitempty"` Transmitted bool `protobuf:"varint,7,opt,name=Transmitted" json:"Transmitted,omitempty"` Amendment string `protobuf:"bytes,8,opt,name=Amendment" json:"Amendment,omitempty"` Private string `protobuf:"bytes,9,opt,name=Private" json:"Private,omitempty"` }
func BftxStructConverstionON ¶
func BftxStructConverstionON(tx *btx.BF_TX) (*BFTXTransaction, error)
BftxStructConverstionON (Old to New) is a function that convert the old structure *BF_TX to new structure *BFTXTransaction. These two structure is duplicated somehow. This function is used for temporal conversion. since this is just for temporal usage, I will just use json marshal and unmarshal to convert structures
func NVCsvConverterNew ¶
func NVCsvConverterNew(line []string) *BFTXTransaction
NVCsvConverterNew is a function that convert an array of bftx parameters to BFTXTransaction structure. This is used for the converting the Lading.csv to bftx.BFTX --------------------------------------------------------------------------------
func SaberDecoding ¶
func SaberDecoding(tx *BFTXTransaction, st Saberinput) (*BFTXTransaction, error)
SaberDecodingTestCase is the function that enable it to connect to a container which realizing the saber decoding service
func SaberEncoding ¶
func SaberEncoding(tx *BFTXTransaction, st Saberinput) (*BFTXTransaction, error)
SaberEncoding takes an Bftx transaction and returns the saber encoded messages
func SaberEncodingTestCase ¶
func SaberEncodingTestCase(st Saberinput) (*BFTXTransaction, error)
SaberEncodingTestCase is the function that enable it to connect to a container which realizing the saber encoding service
func (*BFTXTransaction) Descriptor ¶
func (*BFTXTransaction) Descriptor() ([]byte, []int)
func (*BFTXTransaction) GetAmendment ¶
func (m *BFTXTransaction) GetAmendment() string
func (*BFTXTransaction) GetId ¶
func (m *BFTXTransaction) GetId() string
func (*BFTXTransaction) GetPrivate ¶
func (m *BFTXTransaction) GetPrivate() string
func (*BFTXTransaction) GetPrivateKey ¶
func (m *BFTXTransaction) GetPrivateKey() *SignKey
func (*BFTXTransaction) GetProperties ¶
func (m *BFTXTransaction) GetProperties() *BFTX_Payload
func (*BFTXTransaction) GetSignature ¶
func (m *BFTXTransaction) GetSignature() string
func (*BFTXTransaction) GetSignhash ¶
func (m *BFTXTransaction) GetSignhash() string
func (*BFTXTransaction) GetTransmitted ¶
func (m *BFTXTransaction) GetTransmitted() bool
func (*BFTXTransaction) GetVerified ¶
func (m *BFTXTransaction) GetVerified() bool
func (*BFTXTransaction) ProtoMessage ¶
func (*BFTXTransaction) ProtoMessage()
func (*BFTXTransaction) Reset ¶
func (m *BFTXTransaction) Reset()
func (*BFTXTransaction) String ¶
func (m *BFTXTransaction) String() string
type BFTX_DecodeRequest ¶
type BFTX_DecodeRequest struct { Bftxtrans *BFTXTransaction `protobuf:"bytes,1,opt,name=bftxtrans" json:"bftxtrans,omitempty"` KeyName string `protobuf:"bytes,2,opt,name=KeyName" json:"KeyName,omitempty"` }
The BFTX decryption transaction data structure (test version)
func (*BFTX_DecodeRequest) Descriptor ¶
func (*BFTX_DecodeRequest) Descriptor() ([]byte, []int)
func (*BFTX_DecodeRequest) GetBftxtrans ¶
func (m *BFTX_DecodeRequest) GetBftxtrans() *BFTXTransaction
func (*BFTX_DecodeRequest) GetKeyName ¶
func (m *BFTX_DecodeRequest) GetKeyName() string
func (*BFTX_DecodeRequest) ProtoMessage ¶
func (*BFTX_DecodeRequest) ProtoMessage()
func (*BFTX_DecodeRequest) Reset ¶
func (m *BFTX_DecodeRequest) Reset()
func (*BFTX_DecodeRequest) String ¶
func (m *BFTX_DecodeRequest) String() string
type BFTX_EncodeRequest ¶
type BFTX_EncodeRequest struct { Bftxtrans *BFTXTransaction `protobuf:"bytes,1,opt,name=bftxtrans" json:"bftxtrans,omitempty"` Bftxconfig *BFTXEncryptionConfig `protobuf:"bytes,2,opt,name=bftxconfig" json:"bftxconfig,omitempty"` }
The BFTX encryption transaction data structure (test version)
func (*BFTX_EncodeRequest) Descriptor ¶
func (*BFTX_EncodeRequest) Descriptor() ([]byte, []int)
func (*BFTX_EncodeRequest) GetBftxconfig ¶
func (m *BFTX_EncodeRequest) GetBftxconfig() *BFTXEncryptionConfig
func (*BFTX_EncodeRequest) GetBftxtrans ¶
func (m *BFTX_EncodeRequest) GetBftxtrans() *BFTXTransaction
func (*BFTX_EncodeRequest) ProtoMessage ¶
func (*BFTX_EncodeRequest) ProtoMessage()
func (*BFTX_EncodeRequest) Reset ¶
func (m *BFTX_EncodeRequest) Reset()
func (*BFTX_EncodeRequest) String ¶
func (m *BFTX_EncodeRequest) String() string
type BFTX_Payload ¶
type BFTX_Payload struct { Shipper string `protobuf:"bytes,1,opt,name=Shipper" json:"Shipper,omitempty"` BolNum string `protobuf:"bytes,2,opt,name=BolNum" json:"BolNum,omitempty"` RefNum string `protobuf:"bytes,3,opt,name=RefNum" json:"RefNum,omitempty"` Vessel string `protobuf:"bytes,4,opt,name=Vessel" json:"Vessel,omitempty"` PortOfLoading string `protobuf:"bytes,5,opt,name=PortOfLoading" json:"PortOfLoading,omitempty"` PortOfDischarge string `protobuf:"bytes,6,opt,name=PortOfDischarge" json:"PortOfDischarge,omitempty"` UnitOfVolume string `protobuf:"bytes,7,opt,name=UnitOfVolume" json:"UnitOfVolume,omitempty"` NotifyAddress string `protobuf:"bytes,8,opt,name=NotifyAddress" json:"NotifyAddress,omitempty"` DescOfGoods string `protobuf:"bytes,9,opt,name=DescOfGoods" json:"DescOfGoods,omitempty"` GrossWeight string `protobuf:"bytes,10,opt,name=GrossWeight" json:"GrossWeight,omitempty"` FreightPayableAmt string `protobuf:"bytes,11,opt,name=FreightPayableAmt" json:"FreightPayableAmt,omitempty"` FreightAdvAmt string `protobuf:"bytes,12,opt,name=FreightAdvAmt" json:"FreightAdvAmt,omitempty"` GeneralInstructions string `protobuf:"bytes,13,opt,name=GeneralInstructions" json:"GeneralInstructions,omitempty"` DateShipped string `protobuf:"bytes,14,opt,name=DateShipped" json:"DateShipped,omitempty"` IssueDetails *ISSUEDETAILS `protobuf:"bytes,15,opt,name=IssueDetails" json:"IssueDetails,omitempty"` NumBol string `protobuf:"bytes,16,opt,name=NumBol" json:"NumBol,omitempty"` MasterInfo *MASTERINFO `protobuf:"bytes,17,opt,name=MasterInfo" json:"MasterInfo,omitempty"` AgentForMaster *AGENTFORMASTER `protobuf:"bytes,18,opt,name=AgentForMaster" json:"AgentForMaster,omitempty"` AgentForOwner *AGENTFOROWNER `protobuf:"bytes,19,opt,name=AgentForOwner" json:"AgentForOwner,omitempty"` EncryptionMetaData string `protobuf:"bytes,20,opt,name=EncryptionMetaData" json:"EncryptionMetaData,omitempty"` Consignee string `protobuf:"bytes,21,opt,name=Consignee" json:"Consignee,omitempty"` HouseBill string `protobuf:"bytes,22,opt,name=HouseBill" json:"HouseBill,omitempty"` ReceiveAgent string `protobuf:"bytes,23,opt,name=ReceiveAgent" json:"ReceiveAgent,omitempty"` Destination string `protobuf:"bytes,24,opt,name=Destination" json:"Destination,omitempty"` MarksAndNumbers string `protobuf:"bytes,25,opt,name=MarksAndNumbers" json:"MarksAndNumbers,omitempty"` UnitOfWeight string `protobuf:"bytes,26,opt,name=UnitOfWeight" json:"UnitOfWeight,omitempty"` Volume string `protobuf:"bytes,27,opt,name=Volume" json:"Volume,omitempty"` Container string `protobuf:"bytes,28,opt,name=Container" json:"Container,omitempty"` ContainerSeal string `protobuf:"bytes,29,opt,name=ContainerSeal" json:"ContainerSeal,omitempty"` Packages string `protobuf:"bytes,30,opt,name=Packages" json:"Packages,omitempty"` PackType string `protobuf:"bytes,31,opt,name=PackType" json:"PackType,omitempty"` INCOTerms string `protobuf:"bytes,32,opt,name=INCOTerms" json:"INCOTerms,omitempty"` DeliverAgent string `protobuf:"bytes,33,opt,name=DeliverAgent" json:"DeliverAgent,omitempty"` ContainerMode string `protobuf:"bytes,34,opt,name=ContainerMode" json:"ContainerMode,omitempty"` ContainerType string `protobuf:"bytes,35,opt,name=ContainerType" json:"ContainerType,omitempty"` }
func (*BFTX_Payload) Descriptor ¶
func (*BFTX_Payload) Descriptor() ([]byte, []int)
func (*BFTX_Payload) GetAgentForMaster ¶
func (m *BFTX_Payload) GetAgentForMaster() *AGENTFORMASTER
func (*BFTX_Payload) GetAgentForOwner ¶
func (m *BFTX_Payload) GetAgentForOwner() *AGENTFOROWNER
func (*BFTX_Payload) GetBolNum ¶
func (m *BFTX_Payload) GetBolNum() string
func (*BFTX_Payload) GetConsignee ¶
func (m *BFTX_Payload) GetConsignee() string
func (*BFTX_Payload) GetContainer ¶
func (m *BFTX_Payload) GetContainer() string
func (*BFTX_Payload) GetContainerMode ¶
func (m *BFTX_Payload) GetContainerMode() string
func (*BFTX_Payload) GetContainerSeal ¶
func (m *BFTX_Payload) GetContainerSeal() string
func (*BFTX_Payload) GetContainerType ¶
func (m *BFTX_Payload) GetContainerType() string
func (*BFTX_Payload) GetDateShipped ¶
func (m *BFTX_Payload) GetDateShipped() string
func (*BFTX_Payload) GetDeliverAgent ¶
func (m *BFTX_Payload) GetDeliverAgent() string
func (*BFTX_Payload) GetDescOfGoods ¶
func (m *BFTX_Payload) GetDescOfGoods() string
func (*BFTX_Payload) GetDestination ¶
func (m *BFTX_Payload) GetDestination() string
func (*BFTX_Payload) GetEncryptionMetaData ¶
func (m *BFTX_Payload) GetEncryptionMetaData() string
func (*BFTX_Payload) GetFreightAdvAmt ¶
func (m *BFTX_Payload) GetFreightAdvAmt() string
func (*BFTX_Payload) GetFreightPayableAmt ¶
func (m *BFTX_Payload) GetFreightPayableAmt() string
func (*BFTX_Payload) GetGeneralInstructions ¶
func (m *BFTX_Payload) GetGeneralInstructions() string
func (*BFTX_Payload) GetGrossWeight ¶
func (m *BFTX_Payload) GetGrossWeight() string
func (*BFTX_Payload) GetHouseBill ¶
func (m *BFTX_Payload) GetHouseBill() string
func (*BFTX_Payload) GetINCOTerms ¶
func (m *BFTX_Payload) GetINCOTerms() string
func (*BFTX_Payload) GetIssueDetails ¶
func (m *BFTX_Payload) GetIssueDetails() *ISSUEDETAILS
func (*BFTX_Payload) GetMarksAndNumbers ¶
func (m *BFTX_Payload) GetMarksAndNumbers() string
func (*BFTX_Payload) GetMasterInfo ¶
func (m *BFTX_Payload) GetMasterInfo() *MASTERINFO
func (*BFTX_Payload) GetNotifyAddress ¶
func (m *BFTX_Payload) GetNotifyAddress() string
func (*BFTX_Payload) GetNumBol ¶
func (m *BFTX_Payload) GetNumBol() string
func (*BFTX_Payload) GetPackType ¶
func (m *BFTX_Payload) GetPackType() string
func (*BFTX_Payload) GetPackages ¶
func (m *BFTX_Payload) GetPackages() string
func (*BFTX_Payload) GetPortOfDischarge ¶
func (m *BFTX_Payload) GetPortOfDischarge() string
func (*BFTX_Payload) GetPortOfLoading ¶
func (m *BFTX_Payload) GetPortOfLoading() string
func (*BFTX_Payload) GetReceiveAgent ¶
func (m *BFTX_Payload) GetReceiveAgent() string
func (*BFTX_Payload) GetRefNum ¶
func (m *BFTX_Payload) GetRefNum() string
func (*BFTX_Payload) GetShipper ¶
func (m *BFTX_Payload) GetShipper() string
func (*BFTX_Payload) GetUnitOfVolume ¶
func (m *BFTX_Payload) GetUnitOfVolume() string
func (*BFTX_Payload) GetUnitOfWeight ¶
func (m *BFTX_Payload) GetUnitOfWeight() string
func (*BFTX_Payload) GetVessel ¶
func (m *BFTX_Payload) GetVessel() string
func (*BFTX_Payload) GetVolume ¶
func (m *BFTX_Payload) GetVolume() string
func (*BFTX_Payload) ProtoMessage ¶
func (*BFTX_Payload) ProtoMessage()
func (*BFTX_Payload) Reset ¶
func (m *BFTX_Payload) Reset()
func (*BFTX_Payload) String ¶
func (m *BFTX_Payload) String() string
type ENCRYPTIONFIELD ¶
type ENCRYPTIONFIELD struct { Fieldname string `protobuf:"bytes,1,opt,name=fieldname" json:"fieldname,omitempty"` Authorizeduser []string `protobuf:"bytes,2,rep,name=authorizeduser" json:"authorizeduser,omitempty"` }
func (*ENCRYPTIONFIELD) Descriptor ¶
func (*ENCRYPTIONFIELD) Descriptor() ([]byte, []int)
func (*ENCRYPTIONFIELD) GetAuthorizeduser ¶
func (m *ENCRYPTIONFIELD) GetAuthorizeduser() []string
func (*ENCRYPTIONFIELD) GetFieldname ¶
func (m *ENCRYPTIONFIELD) GetFieldname() string
func (*ENCRYPTIONFIELD) ProtoMessage ¶
func (*ENCRYPTIONFIELD) ProtoMessage()
func (*ENCRYPTIONFIELD) Reset ¶
func (m *ENCRYPTIONFIELD) Reset()
func (*ENCRYPTIONFIELD) String ¶
func (m *ENCRYPTIONFIELD) String() string
type ISSUEDETAILS ¶
type ISSUEDETAILS struct { PlaceOfIssue string `protobuf:"bytes,1,opt,name=PlaceOfIssue" json:"PlaceOfIssue,omitempty"` DateOfIssue string `protobuf:"bytes,2,opt,name=DateOfIssue" json:"DateOfIssue,omitempty"` }
func (*ISSUEDETAILS) Descriptor ¶
func (*ISSUEDETAILS) Descriptor() ([]byte, []int)
func (*ISSUEDETAILS) GetDateOfIssue ¶
func (m *ISSUEDETAILS) GetDateOfIssue() string
func (*ISSUEDETAILS) GetPlaceOfIssue ¶
func (m *ISSUEDETAILS) GetPlaceOfIssue() string
func (*ISSUEDETAILS) ProtoMessage ¶
func (*ISSUEDETAILS) ProtoMessage()
func (*ISSUEDETAILS) Reset ¶
func (m *ISSUEDETAILS) Reset()
func (*ISSUEDETAILS) String ¶
func (m *ISSUEDETAILS) String() string
type MASTERINFO ¶
type MASTERINFO struct { FirstName string `protobuf:"bytes,1,opt,name=FirstName" json:"FirstName,omitempty"` LastName string `protobuf:"bytes,2,opt,name=LastName" json:"LastName,omitempty"` Sig string `protobuf:"bytes,3,opt,name=Sig" json:"Sig,omitempty"` }
func (*MASTERINFO) Descriptor ¶
func (*MASTERINFO) Descriptor() ([]byte, []int)
func (*MASTERINFO) GetFirstName ¶
func (m *MASTERINFO) GetFirstName() string
func (*MASTERINFO) GetLastName ¶
func (m *MASTERINFO) GetLastName() string
func (*MASTERINFO) GetSig ¶
func (m *MASTERINFO) GetSig() string
func (*MASTERINFO) ProtoMessage ¶
func (*MASTERINFO) ProtoMessage()
func (*MASTERINFO) Reset ¶
func (m *MASTERINFO) Reset()
func (*MASTERINFO) String ¶
func (m *MASTERINFO) String() string
type PUBLICKEYS ¶
type PUBLICKEYS struct { Userid string `protobuf:"bytes,1,opt,name=userid" json:"userid,omitempty"` Keyfile string `protobuf:"bytes,2,opt,name=keyfile" json:"keyfile,omitempty"` }
func (*PUBLICKEYS) Descriptor ¶
func (*PUBLICKEYS) Descriptor() ([]byte, []int)
func (*PUBLICKEYS) GetKeyfile ¶
func (m *PUBLICKEYS) GetKeyfile() string
func (*PUBLICKEYS) GetUserid ¶
func (m *PUBLICKEYS) GetUserid() string
func (*PUBLICKEYS) ProtoMessage ¶
func (*PUBLICKEYS) ProtoMessage()
func (*PUBLICKEYS) Reset ¶
func (m *PUBLICKEYS) Reset()
func (*PUBLICKEYS) String ¶
func (m *PUBLICKEYS) String() string
type Saberinput ¶
type Saberinput struct { KeyName string // contains filtered or unexported fields }
Saberinput structure for go-bftx use and test
func SaberDefaultInput ¶
func SaberDefaultInput() Saberinput
SaberDefaultInput provides the saberinput structure with default value
func Saberinputcli ¶
func Saberinputcli(in *os.File) (st Saberinput)
Saberinputcli provides interactive interaction for user to use bftx interface
type SignKey ¶
type SignKey struct { Curve string `protobuf:"bytes,1,opt,name=Curve" json:"Curve,omitempty"` X string `protobuf:"bytes,2,opt,name=X" json:"X,omitempty"` Y string `protobuf:"bytes,3,opt,name=Y" json:"Y,omitempty"` D string `protobuf:"bytes,4,opt,name=D" json:"D,omitempty"` }
func (*SignKey) Descriptor ¶
func (*SignKey) ProtoMessage ¶
func (*SignKey) ProtoMessage()