service

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetBase58Check

func (x *Address) GetBase58Check() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

func (*Address) Validate

func (m *Address) Validate() error

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

func (m *Address) ValidateAll() error

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

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

Cause function returns cause value.

func (BalanceAdjustmentRequestValidationError) Error

Error satisfies the builtin error interface

func (BalanceAdjustmentRequestValidationError) ErrorName

ErrorName returns error name.

func (BalanceAdjustmentRequestValidationError) Field

Field function returns field value.

func (BalanceAdjustmentRequestValidationError) Key

Key function returns key value.

func (BalanceAdjustmentRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use BigInt.ProtoReflect.Descriptor instead.

func (*BigInt) GetValue

func (x *BigInt) GetValue() string

func (*BigInt) ProtoMessage

func (*BigInt) ProtoMessage()

func (*BigInt) ProtoReflect

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

func (*BigInt) Reset

func (x *BigInt) Reset()

func (*BigInt) String

func (x *BigInt) String() string

func (*BigInt) Validate

func (m *BigInt) Validate() error

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

func (m *BigInt) ValidateAll() error

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.

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

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.

Jump to

Keyboard shortcuts

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