proto

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

Cause function returns cause value.

func (HelloWorldResponseValidationError) Error

Error satisfies the builtin error interface

func (HelloWorldResponseValidationError) ErrorName

ErrorName returns error name.

func (HelloWorldResponseValidationError) Field

Field function returns field value.

func (HelloWorldResponseValidationError) Key

Key function returns key value.

func (HelloWorldResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedBalanceServiceServer

type UnimplementedBalanceServiceServer struct {
}

UnimplementedBalanceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBalanceServiceServer) AddBalanceByAdmin

func (UnimplementedBalanceServiceServer) AddBalanceByAdmin2

func (UnimplementedBalanceServiceServer) HelloWorld

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.

Jump to

Keyboard shortcuts

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