Documentation ¶
Index ¶
- Variables
- func RegisterBalanceServiceServer(s grpc.ServiceRegistrar, srv BalanceServiceServer)
- 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 BalanceServiceClient
- type BalanceServiceServer
- 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 HelloWorldResponse
- func (*HelloWorldResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HelloWorldResponse) GetMessage() string
- func (*HelloWorldResponse) ProtoMessage()
- func (x *HelloWorldResponse) ProtoReflect() protoreflect.Message
- func (x *HelloWorldResponse) Reset()
- func (x *HelloWorldResponse) String() string
- func (m *HelloWorldResponse) Validate() error
- func (m *HelloWorldResponse) ValidateAll() error
- type HelloWorldResponseMultiError
- type HelloWorldResponseValidationError
- func (e HelloWorldResponseValidationError) Cause() error
- func (e HelloWorldResponseValidationError) Error() string
- func (e HelloWorldResponseValidationError) ErrorName() string
- func (e HelloWorldResponseValidationError) Field() string
- func (e HelloWorldResponseValidationError) Key() bool
- func (e HelloWorldResponseValidationError) Reason() string
- type UnimplementedBalanceServiceServer
- func (UnimplementedBalanceServiceServer) AddBalanceByAdmin(context.Context, *BalanceAdjustmentRequest) (*emptypb.Empty, error)
- func (UnimplementedBalanceServiceServer) AddBalanceByAdmin2(context.Context, *BalanceAdjustmentRequest) (*emptypb.Empty, error)
- func (UnimplementedBalanceServiceServer) HelloWorld(context.Context, *emptypb.Empty) (*HelloWorldResponse, error)
- type UnsafeBalanceServiceServer
Constants ¶
This section is empty.
Variables ¶
var BalanceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "foundation.token.BalanceService", HandlerType: (*BalanceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddBalanceByAdmin", Handler: _BalanceService_AddBalanceByAdmin_Handler, }, { MethodName: "HelloWorld", Handler: _BalanceService_HelloWorld_Handler, }, { MethodName: "AddBalanceByAdmin2", Handler: _BalanceService_AddBalanceByAdmin2_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "balance_service.proto", }
BalanceService_ServiceDesc is the grpc.ServiceDesc for BalanceService 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 RegisterBalanceServiceServer ¶
func RegisterBalanceServiceServer(s grpc.ServiceRegistrar, srv BalanceServiceServer)
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 BalanceServiceClient ¶
type BalanceServiceClient interface { AddBalanceByAdmin(ctx context.Context, in *BalanceAdjustmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) HelloWorld(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HelloWorldResponse, error) AddBalanceByAdmin2(ctx context.Context, in *BalanceAdjustmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
BalanceServiceClient is the client API for BalanceService 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 NewBalanceServiceClient ¶
func NewBalanceServiceClient(cc grpc.ClientConnInterface) BalanceServiceClient
type BalanceServiceServer ¶
type BalanceServiceServer interface { AddBalanceByAdmin(context.Context, *BalanceAdjustmentRequest) (*emptypb.Empty, error) HelloWorld(context.Context, *emptypb.Empty) (*HelloWorldResponse, error) AddBalanceByAdmin2(context.Context, *BalanceAdjustmentRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
BalanceServiceServer is the server API for BalanceService service. All implementations must embed UnimplementedBalanceServiceServer for forward compatibility
type BigInt ¶
type BigInt struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // Value must be a number. // 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 HelloWorldResponse ¶
type HelloWorldResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HelloWorldResponse) Descriptor
deprecated
func (*HelloWorldResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloWorldResponse.ProtoReflect.Descriptor instead.
func (*HelloWorldResponse) GetMessage ¶
func (x *HelloWorldResponse) GetMessage() string
func (*HelloWorldResponse) ProtoMessage ¶
func (*HelloWorldResponse) ProtoMessage()
func (*HelloWorldResponse) ProtoReflect ¶
func (x *HelloWorldResponse) ProtoReflect() protoreflect.Message
func (*HelloWorldResponse) Reset ¶
func (x *HelloWorldResponse) Reset()
func (*HelloWorldResponse) String ¶
func (x *HelloWorldResponse) String() string
func (*HelloWorldResponse) Validate ¶
func (m *HelloWorldResponse) Validate() error
Validate checks the field values on HelloWorldResponse 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 (*HelloWorldResponse) ValidateAll ¶
func (m *HelloWorldResponse) ValidateAll() error
ValidateAll checks the field values on HelloWorldResponse 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 HelloWorldResponseMultiError, or nil if none found.
type HelloWorldResponseMultiError ¶
type HelloWorldResponseMultiError []error
HelloWorldResponseMultiError is an error wrapping multiple validation errors returned by HelloWorldResponse.ValidateAll() if the designated constraints aren't met.
func (HelloWorldResponseMultiError) AllErrors ¶
func (m HelloWorldResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HelloWorldResponseMultiError) Error ¶
func (m HelloWorldResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HelloWorldResponseValidationError ¶
type HelloWorldResponseValidationError struct {
// contains filtered or unexported fields
}
HelloWorldResponseValidationError is the validation error returned by HelloWorldResponse.Validate if the designated constraints aren't met.
func (HelloWorldResponseValidationError) Cause ¶
func (e HelloWorldResponseValidationError) Cause() error
Cause function returns cause value.
func (HelloWorldResponseValidationError) Error ¶
func (e HelloWorldResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HelloWorldResponseValidationError) ErrorName ¶
func (e HelloWorldResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HelloWorldResponseValidationError) Field ¶
func (e HelloWorldResponseValidationError) Field() string
Field function returns field value.
func (HelloWorldResponseValidationError) Key ¶
func (e HelloWorldResponseValidationError) Key() bool
Key function returns key value.
func (HelloWorldResponseValidationError) Reason ¶
func (e HelloWorldResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedBalanceServiceServer ¶
type UnimplementedBalanceServiceServer struct { }
UnimplementedBalanceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBalanceServiceServer) AddBalanceByAdmin ¶
func (UnimplementedBalanceServiceServer) AddBalanceByAdmin(context.Context, *BalanceAdjustmentRequest) (*emptypb.Empty, error)
func (UnimplementedBalanceServiceServer) AddBalanceByAdmin2 ¶
func (UnimplementedBalanceServiceServer) AddBalanceByAdmin2(context.Context, *BalanceAdjustmentRequest) (*emptypb.Empty, error)
func (UnimplementedBalanceServiceServer) HelloWorld ¶
func (UnimplementedBalanceServiceServer) HelloWorld(context.Context, *emptypb.Empty) (*HelloWorldResponse, error)
type UnsafeBalanceServiceServer ¶
type UnsafeBalanceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBalanceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BalanceServiceServer will result in compilation errors.