Documentation ¶
Index ¶
- Variables
- func RegisterFiatServiceServer(s grpc.ServiceRegistrar, srv FiatServiceServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetBase58Check() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- func (m *Address) Validate() error
- func (m *Address) ValidateAll() error
- type AddressMultiError
- type AddressValidationError
- type BalanceAdjustmentRequest
- func (*BalanceAdjustmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BalanceAdjustmentRequest) GetAddress() *Address
- func (x *BalanceAdjustmentRequest) GetAmount() *BigInt
- func (x *BalanceAdjustmentRequest) GetReason() string
- func (*BalanceAdjustmentRequest) ProtoMessage()
- func (x *BalanceAdjustmentRequest) ProtoReflect() protoreflect.Message
- func (x *BalanceAdjustmentRequest) Reset()
- func (x *BalanceAdjustmentRequest) String() string
- func (m *BalanceAdjustmentRequest) Validate() error
- func (m *BalanceAdjustmentRequest) ValidateAll() error
- type BalanceAdjustmentRequestMultiError
- type BalanceAdjustmentRequestValidationError
- func (e BalanceAdjustmentRequestValidationError) Cause() error
- func (e BalanceAdjustmentRequestValidationError) Error() string
- func (e BalanceAdjustmentRequestValidationError) ErrorName() string
- func (e BalanceAdjustmentRequestValidationError) Field() string
- func (e BalanceAdjustmentRequestValidationError) Key() bool
- func (e BalanceAdjustmentRequestValidationError) Reason() string
- type BigInt
- func (*BigInt) Descriptor() ([]byte, []int)deprecated
- func (x *BigInt) GetValue() string
- func (*BigInt) ProtoMessage()
- func (x *BigInt) ProtoReflect() protoreflect.Message
- func (x *BigInt) Reset()
- func (x *BigInt) String() string
- func (m *BigInt) Validate() error
- func (m *BigInt) ValidateAll() error
- type BigIntMultiError
- type BigIntValidationError
- type FiatServiceClient
- type FiatServiceServer
- type UnimplementedFiatServiceServer
- type UnsafeFiatServiceServer
Constants ¶
This section is empty.
Variables ¶
var FiatService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "foundationtoken.FiatService", HandlerType: (*FiatServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddBalanceByAdmin", Handler: _FiatService_AddBalanceByAdmin_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "balance_service.proto", }
FiatService_ServiceDesc is the grpc.ServiceDesc for FiatService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_balance_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFiatServiceServer ¶
func RegisterFiatServiceServer(s grpc.ServiceRegistrar, srv FiatServiceServer)
Types ¶
type Address ¶
type Address struct { Base58Check string `protobuf:"bytes,1,opt,name=base58check,proto3" json:"base58check,omitempty"` // contains filtered or unexported fields }
Address represents a blockchain address.
func (*Address) Descriptor
deprecated
func (*Address) GetBase58Check ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
func (*Address) Validate ¶
Validate checks the field values on Address with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Address) ValidateAll ¶
ValidateAll checks the field values on Address with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddressMultiError, or nil if none found.
type AddressMultiError ¶
type AddressMultiError []error
AddressMultiError is an error wrapping multiple validation errors returned by Address.ValidateAll() if the designated constraints aren't met.
func (AddressMultiError) AllErrors ¶
func (m AddressMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddressMultiError) Error ¶
func (m AddressMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddressValidationError ¶
type AddressValidationError struct {
// contains filtered or unexported fields
}
AddressValidationError is the validation error returned by Address.Validate if the designated constraints aren't met.
func (AddressValidationError) Cause ¶
func (e AddressValidationError) Cause() error
Cause function returns cause value.
func (AddressValidationError) Error ¶
func (e AddressValidationError) Error() string
Error satisfies the builtin error interface
func (AddressValidationError) ErrorName ¶
func (e AddressValidationError) ErrorName() string
ErrorName returns error name.
func (AddressValidationError) Field ¶
func (e AddressValidationError) Field() string
Field function returns field value.
func (AddressValidationError) Key ¶
func (e AddressValidationError) Key() bool
Key function returns key value.
func (AddressValidationError) Reason ¶
func (e AddressValidationError) Reason() string
Reason function returns reason value.
type BalanceAdjustmentRequest ¶
type BalanceAdjustmentRequest struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Amount *BigInt `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*BalanceAdjustmentRequest) Descriptor
deprecated
func (*BalanceAdjustmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use BalanceAdjustmentRequest.ProtoReflect.Descriptor instead.
func (*BalanceAdjustmentRequest) GetAddress ¶
func (x *BalanceAdjustmentRequest) GetAddress() *Address
func (*BalanceAdjustmentRequest) GetAmount ¶
func (x *BalanceAdjustmentRequest) GetAmount() *BigInt
func (*BalanceAdjustmentRequest) GetReason ¶
func (x *BalanceAdjustmentRequest) GetReason() string
func (*BalanceAdjustmentRequest) ProtoMessage ¶
func (*BalanceAdjustmentRequest) ProtoMessage()
func (*BalanceAdjustmentRequest) ProtoReflect ¶
func (x *BalanceAdjustmentRequest) ProtoReflect() protoreflect.Message
func (*BalanceAdjustmentRequest) Reset ¶
func (x *BalanceAdjustmentRequest) Reset()
func (*BalanceAdjustmentRequest) String ¶
func (x *BalanceAdjustmentRequest) String() string
func (*BalanceAdjustmentRequest) Validate ¶
func (m *BalanceAdjustmentRequest) Validate() error
Validate checks the field values on BalanceAdjustmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BalanceAdjustmentRequest) ValidateAll ¶
func (m *BalanceAdjustmentRequest) ValidateAll() error
ValidateAll checks the field values on BalanceAdjustmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BalanceAdjustmentRequestMultiError, or nil if none found.
type BalanceAdjustmentRequestMultiError ¶
type BalanceAdjustmentRequestMultiError []error
BalanceAdjustmentRequestMultiError is an error wrapping multiple validation errors returned by BalanceAdjustmentRequest.ValidateAll() if the designated constraints aren't met.
func (BalanceAdjustmentRequestMultiError) AllErrors ¶
func (m BalanceAdjustmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BalanceAdjustmentRequestMultiError) Error ¶
func (m BalanceAdjustmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BalanceAdjustmentRequestValidationError ¶
type BalanceAdjustmentRequestValidationError struct {
// contains filtered or unexported fields
}
BalanceAdjustmentRequestValidationError is the validation error returned by BalanceAdjustmentRequest.Validate if the designated constraints aren't met.
func (BalanceAdjustmentRequestValidationError) Cause ¶
func (e BalanceAdjustmentRequestValidationError) Cause() error
Cause function returns cause value.
func (BalanceAdjustmentRequestValidationError) Error ¶
func (e BalanceAdjustmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BalanceAdjustmentRequestValidationError) ErrorName ¶
func (e BalanceAdjustmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BalanceAdjustmentRequestValidationError) Field ¶
func (e BalanceAdjustmentRequestValidationError) Field() string
Field function returns field value.
func (BalanceAdjustmentRequestValidationError) Key ¶
func (e BalanceAdjustmentRequestValidationError) Key() bool
Key function returns key value.
func (BalanceAdjustmentRequestValidationError) Reason ¶
func (e BalanceAdjustmentRequestValidationError) Reason() string
Reason function returns reason value.
type BigInt ¶
type BigInt struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
BigInt represents a large integer.
func (*BigInt) Descriptor
deprecated
func (*BigInt) ProtoMessage ¶
func (*BigInt) ProtoMessage()
func (*BigInt) ProtoReflect ¶
func (x *BigInt) ProtoReflect() protoreflect.Message
func (*BigInt) Validate ¶
Validate checks the field values on BigInt with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BigInt) ValidateAll ¶
ValidateAll checks the field values on BigInt with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BigIntMultiError, or nil if none found.
type BigIntMultiError ¶
type BigIntMultiError []error
BigIntMultiError is an error wrapping multiple validation errors returned by BigInt.ValidateAll() if the designated constraints aren't met.
func (BigIntMultiError) AllErrors ¶
func (m BigIntMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BigIntMultiError) Error ¶
func (m BigIntMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BigIntValidationError ¶
type BigIntValidationError struct {
// contains filtered or unexported fields
}
BigIntValidationError is the validation error returned by BigInt.Validate if the designated constraints aren't met.
func (BigIntValidationError) Cause ¶
func (e BigIntValidationError) Cause() error
Cause function returns cause value.
func (BigIntValidationError) Error ¶
func (e BigIntValidationError) Error() string
Error satisfies the builtin error interface
func (BigIntValidationError) ErrorName ¶
func (e BigIntValidationError) ErrorName() string
ErrorName returns error name.
func (BigIntValidationError) Field ¶
func (e BigIntValidationError) Field() string
Field function returns field value.
func (BigIntValidationError) Key ¶
func (e BigIntValidationError) Key() bool
Key function returns key value.
func (BigIntValidationError) Reason ¶
func (e BigIntValidationError) Reason() string
Reason function returns reason value.
type FiatServiceClient ¶
type FiatServiceClient interface {
AddBalanceByAdmin(ctx context.Context, in *BalanceAdjustmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
FiatServiceClient is the client API for FiatService 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 NewFiatServiceClient ¶
func NewFiatServiceClient(cc grpc.ClientConnInterface) FiatServiceClient
type FiatServiceServer ¶
type FiatServiceServer interface { AddBalanceByAdmin(context.Context, *BalanceAdjustmentRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
FiatServiceServer is the server API for FiatService service. All implementations must embed UnimplementedFiatServiceServer for forward compatibility
type UnimplementedFiatServiceServer ¶
type UnimplementedFiatServiceServer struct { }
UnimplementedFiatServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFiatServiceServer) AddBalanceByAdmin ¶
func (UnimplementedFiatServiceServer) AddBalanceByAdmin(context.Context, *BalanceAdjustmentRequest) (*emptypb.Empty, error)
type UnsafeFiatServiceServer ¶
type UnsafeFiatServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFiatServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FiatServiceServer will result in compilation errors.