v1

package
v0.0.0-...-da44765 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Vc_SaveSign1To1Args_FullMethodName = "/vc.v1.Vc/SaveSign1to1Args"
	Vc_Verify1To1_FullMethodName       = "/vc.v1.Vc/Verify1to1"
)

Variables

View Source
var File_vc_v1_vc_proto protoreflect.FileDescriptor
View Source
var Vc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vc.v1.Vc",
	HandlerType: (*VcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SaveSign1to1Args",
			Handler:    _Vc_SaveSign1To1Args_Handler,
		},
		{
			MethodName: "Verify1to1",
			Handler:    _Vc_Verify1To1_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vc/v1/vc.proto",
}

Vc_ServiceDesc is the grpc.ServiceDesc for Vc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVcServer

func RegisterVcServer(s grpc.ServiceRegistrar, srv VcServer)

Types

type SaveSign1To1ArgsReq

type SaveSign1To1ArgsReq struct {
	TxnID     string `protobuf:"bytes,1,opt,name=TxnID,proto3" json:"TxnID,omitempty"`
	Otca      string `protobuf:"bytes,2,opt,name=Otca,proto3" json:"Otca,omitempty"`
	PublicKey string `protobuf:"bytes,3,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
	Sotid     string `protobuf:"bytes,4,opt,name=Sotid,proto3" json:"Sotid,omitempty"`
	Totid     string `protobuf:"bytes,5,opt,name=Totid,proto3" json:"Totid,omitempty"`
	Sac       string `protobuf:"bytes,6,opt,name=Sac,proto3" json:"Sac,omitempty"`
	Tac       string `protobuf:"bytes,7,opt,name=Tac,proto3" json:"Tac,omitempty"`
	OTID      string `protobuf:"bytes,8,opt,name=OTID,proto3" json:"OTID,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveSign1To1ArgsReq) Descriptor deprecated

func (*SaveSign1To1ArgsReq) Descriptor() ([]byte, []int)

Deprecated: Use SaveSign1To1ArgsReq.ProtoReflect.Descriptor instead.

func (*SaveSign1To1ArgsReq) GetOTID

func (x *SaveSign1To1ArgsReq) GetOTID() string

func (*SaveSign1To1ArgsReq) GetOtca

func (x *SaveSign1To1ArgsReq) GetOtca() string

func (*SaveSign1To1ArgsReq) GetPublicKey

func (x *SaveSign1To1ArgsReq) GetPublicKey() string

func (*SaveSign1To1ArgsReq) GetSac

func (x *SaveSign1To1ArgsReq) GetSac() string

func (*SaveSign1To1ArgsReq) GetSotid

func (x *SaveSign1To1ArgsReq) GetSotid() string

func (*SaveSign1To1ArgsReq) GetTac

func (x *SaveSign1To1ArgsReq) GetTac() string

func (*SaveSign1To1ArgsReq) GetTotid

func (x *SaveSign1To1ArgsReq) GetTotid() string

func (*SaveSign1To1ArgsReq) GetTxnID

func (x *SaveSign1To1ArgsReq) GetTxnID() string

func (*SaveSign1To1ArgsReq) ProtoMessage

func (*SaveSign1To1ArgsReq) ProtoMessage()

func (*SaveSign1To1ArgsReq) ProtoReflect

func (x *SaveSign1To1ArgsReq) ProtoReflect() protoreflect.Message

func (*SaveSign1To1ArgsReq) Reset

func (x *SaveSign1To1ArgsReq) Reset()

func (*SaveSign1To1ArgsReq) String

func (x *SaveSign1To1ArgsReq) String() string

type SaveSign1To1ArgsRes

type SaveSign1To1ArgsRes struct {
	Result string `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveSign1To1ArgsRes) Descriptor deprecated

func (*SaveSign1To1ArgsRes) Descriptor() ([]byte, []int)

Deprecated: Use SaveSign1To1ArgsRes.ProtoReflect.Descriptor instead.

func (*SaveSign1To1ArgsRes) GetResult

func (x *SaveSign1To1ArgsRes) GetResult() string

func (*SaveSign1To1ArgsRes) ProtoMessage

func (*SaveSign1To1ArgsRes) ProtoMessage()

func (*SaveSign1To1ArgsRes) ProtoReflect

func (x *SaveSign1To1ArgsRes) ProtoReflect() protoreflect.Message

func (*SaveSign1To1ArgsRes) Reset

func (x *SaveSign1To1ArgsRes) Reset()

func (*SaveSign1To1ArgsRes) String

func (x *SaveSign1To1ArgsRes) String() string

type UnimplementedVcServer

type UnimplementedVcServer struct {
}

UnimplementedVcServer must be embedded to have forward compatible implementations.

func (UnimplementedVcServer) SaveSign1To1Args

func (UnimplementedVcServer) Verify1To1

type UnsafeVcServer

type UnsafeVcServer interface {
	// contains filtered or unexported methods
}

UnsafeVcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VcServer will result in compilation errors.

type VcClient

type VcClient interface {
	SaveSign1To1Args(ctx context.Context, in *SaveSign1To1ArgsReq, opts ...grpc.CallOption) (*SaveSign1To1ArgsRes, error)
	Verify1To1(ctx context.Context, in *Verify1To1Req, opts ...grpc.CallOption) (*Verify1To1Res, error)
}

VcClient is the client API for Vc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewVcClient

func NewVcClient(cc grpc.ClientConnInterface) VcClient

type VcServer

type VcServer interface {
	SaveSign1To1Args(context.Context, *SaveSign1To1ArgsReq) (*SaveSign1To1ArgsRes, error)
	Verify1To1(context.Context, *Verify1To1Req) (*Verify1To1Res, error)
	// contains filtered or unexported methods
}

VcServer is the server API for Vc service. All implementations must embed UnimplementedVcServer for forward compatibility

type VcTokenReq

type VcTokenReq struct {
	AppId string `protobuf:"bytes,1,opt,name=AppId,proto3" json:"AppId,omitempty"`
	// contains filtered or unexported fields
}

func (*VcTokenReq) Descriptor deprecated

func (*VcTokenReq) Descriptor() ([]byte, []int)

Deprecated: Use VcTokenReq.ProtoReflect.Descriptor instead.

func (*VcTokenReq) GetAppId

func (x *VcTokenReq) GetAppId() string

func (*VcTokenReq) ProtoMessage

func (*VcTokenReq) ProtoMessage()

func (*VcTokenReq) ProtoReflect

func (x *VcTokenReq) ProtoReflect() protoreflect.Message

func (*VcTokenReq) Reset

func (x *VcTokenReq) Reset()

func (*VcTokenReq) String

func (x *VcTokenReq) String() string

type VcTokenRes

type VcTokenRes struct {
	Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
	// contains filtered or unexported fields
}

func (*VcTokenRes) Descriptor deprecated

func (*VcTokenRes) Descriptor() ([]byte, []int)

Deprecated: Use VcTokenRes.ProtoReflect.Descriptor instead.

func (*VcTokenRes) GetToken

func (x *VcTokenRes) GetToken() string

func (*VcTokenRes) ProtoMessage

func (*VcTokenRes) ProtoMessage()

func (*VcTokenRes) ProtoReflect

func (x *VcTokenRes) ProtoReflect() protoreflect.Message

func (*VcTokenRes) Reset

func (x *VcTokenRes) Reset()

func (*VcTokenRes) String

func (x *VcTokenRes) String() string

type Verify1To1Req

type Verify1To1Req struct {
	TxnID    string `protobuf:"bytes,1,opt,name=TxnID,proto3" json:"TxnID,omitempty"`
	HashData string `protobuf:"bytes,2,opt,name=HashData,proto3" json:"HashData,omitempty"`
	MacSign  string `protobuf:"bytes,3,opt,name=MacSign,proto3" json:"MacSign,omitempty"`
	HashSab  string `protobuf:"bytes,4,opt,name=HashSab,proto3" json:"HashSab,omitempty"`
	HashTab  string `protobuf:"bytes,5,opt,name=HashTab,proto3" json:"HashTab,omitempty"`
	Sab      string `protobuf:"bytes,6,opt,name=Sab,proto3" json:"Sab,omitempty"`
	Tab      string `protobuf:"bytes,7,opt,name=Tab,proto3" json:"Tab,omitempty"`
	// contains filtered or unexported fields
}

func (*Verify1To1Req) Descriptor deprecated

func (*Verify1To1Req) Descriptor() ([]byte, []int)

Deprecated: Use Verify1To1Req.ProtoReflect.Descriptor instead.

func (*Verify1To1Req) GetHashData

func (x *Verify1To1Req) GetHashData() string

func (*Verify1To1Req) GetHashSab

func (x *Verify1To1Req) GetHashSab() string

func (*Verify1To1Req) GetHashTab

func (x *Verify1To1Req) GetHashTab() string

func (*Verify1To1Req) GetMacSign

func (x *Verify1To1Req) GetMacSign() string

func (*Verify1To1Req) GetSab

func (x *Verify1To1Req) GetSab() string

func (*Verify1To1Req) GetTab

func (x *Verify1To1Req) GetTab() string

func (*Verify1To1Req) GetTxnID

func (x *Verify1To1Req) GetTxnID() string

func (*Verify1To1Req) ProtoMessage

func (*Verify1To1Req) ProtoMessage()

func (*Verify1To1Req) ProtoReflect

func (x *Verify1To1Req) ProtoReflect() protoreflect.Message

func (*Verify1To1Req) Reset

func (x *Verify1To1Req) Reset()

func (*Verify1To1Req) String

func (x *Verify1To1Req) String() string

type Verify1To1Res

type Verify1To1Res struct {
	TxnID   string `protobuf:"bytes,1,opt,name=TxnID,proto3" json:"TxnID,omitempty"`
	HashSac string `protobuf:"bytes,2,opt,name=HashSac,proto3" json:"HashSac,omitempty"`
	HashTac string `protobuf:"bytes,3,opt,name=HashTac,proto3" json:"HashTac,omitempty"`
	Sac     string `protobuf:"bytes,4,opt,name=Sac,proto3" json:"Sac,omitempty"`
	Tac     string `protobuf:"bytes,5,opt,name=Tac,proto3" json:"Tac,omitempty"`
	Otid    string `protobuf:"bytes,6,opt,name=Otid,proto3" json:"Otid,omitempty"`
	// contains filtered or unexported fields
}

func (*Verify1To1Res) Descriptor deprecated

func (*Verify1To1Res) Descriptor() ([]byte, []int)

Deprecated: Use Verify1To1Res.ProtoReflect.Descriptor instead.

func (*Verify1To1Res) GetHashSac

func (x *Verify1To1Res) GetHashSac() string

func (*Verify1To1Res) GetHashTac

func (x *Verify1To1Res) GetHashTac() string

func (*Verify1To1Res) GetOtid

func (x *Verify1To1Res) GetOtid() string

func (*Verify1To1Res) GetSac

func (x *Verify1To1Res) GetSac() string

func (*Verify1To1Res) GetTac

func (x *Verify1To1Res) GetTac() string

func (*Verify1To1Res) GetTxnID

func (x *Verify1To1Res) GetTxnID() string

func (*Verify1To1Res) ProtoMessage

func (*Verify1To1Res) ProtoMessage()

func (*Verify1To1Res) ProtoReflect

func (x *Verify1To1Res) ProtoReflect() protoreflect.Message

func (*Verify1To1Res) Reset

func (x *Verify1To1Res) Reset()

func (*Verify1To1Res) String

func (x *Verify1To1Res) String() string

Jump to

Keyboard shortcuts

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