accounting

package
v0.0.0-...-afdc2d8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AccountingService_Balance_FullMethodName = "/neo.fs.v2.accounting.AccountingService/Balance"
)

Variables

View Source
var AccountingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "neo.fs.v2.accounting.AccountingService",
	HandlerType: (*AccountingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Balance",
			Handler:    _AccountingService_Balance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/accounting/grpc/service.proto",
}

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

Functions

func RegisterAccountingServiceServer

func RegisterAccountingServiceServer(s grpc.ServiceRegistrar, srv AccountingServiceServer)

Types

type AccountingServiceClient

type AccountingServiceClient interface {
	// Returns the amount of funds in GAS token for the requested FrostFS account.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS):
	// balance has been successfully read;
	// - Common failures (SECTION_FAILURE_COMMON).
	Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error)
}

AccountingServiceClient is the client API for AccountingService 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 AccountingServiceServer

type AccountingServiceServer interface {
	// Returns the amount of funds in GAS token for the requested FrostFS account.
	//
	// Statuses:
	// - **OK** (0, SECTION_SUCCESS):
	// balance has been successfully read;
	// - Common failures (SECTION_FAILURE_COMMON).
	Balance(context.Context, *BalanceRequest) (*BalanceResponse, error)
}

AccountingServiceServer is the server API for AccountingService service. All implementations should embed UnimplementedAccountingServiceServer for forward compatibility

type BalanceRequest

type BalanceRequest struct {
	Body         *BalanceRequest_Body             `json:"body"`
	MetaHeader   *grpc1.RequestMetaHeader         `json:"metaHeader"`
	VerifyHeader *grpc1.RequestVerificationHeader `json:"verifyHeader"`
}

func (*BalanceRequest) EmitProtobuf

func (x *BalanceRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*BalanceRequest) GetBody

func (x *BalanceRequest) GetBody() *BalanceRequest_Body

func (*BalanceRequest) GetMetaHeader

func (x *BalanceRequest) GetMetaHeader() *grpc1.RequestMetaHeader

func (*BalanceRequest) GetVerifyHeader

func (x *BalanceRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader

func (*BalanceRequest) MarshalEasyJSON

func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer)

func (*BalanceRequest) MarshalJSON

func (x *BalanceRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*BalanceRequest) MarshalProtobuf

func (x *BalanceRequest) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*BalanceRequest) ReadSignedData

func (x *BalanceRequest) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*BalanceRequest) SetBody

func (x *BalanceRequest) SetBody(v *BalanceRequest_Body)

func (*BalanceRequest) SetMetaHeader

func (x *BalanceRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)

func (*BalanceRequest) SetVerifyHeader

func (x *BalanceRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)

func (*BalanceRequest) SignedDataSize

func (x *BalanceRequest) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*BalanceRequest) StableSize

func (x *BalanceRequest) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*BalanceRequest) UnmarshalEasyJSON

func (x *BalanceRequest) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*BalanceRequest) UnmarshalJSON

func (x *BalanceRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*BalanceRequest) UnmarshalProtobuf

func (x *BalanceRequest) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type BalanceRequest_Body

type BalanceRequest_Body struct {
	OwnerId *grpc.OwnerID `json:"ownerId"`
}

func (*BalanceRequest_Body) EmitProtobuf

func (x *BalanceRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*BalanceRequest_Body) GetOwnerId

func (x *BalanceRequest_Body) GetOwnerId() *grpc.OwnerID

func (*BalanceRequest_Body) MarshalEasyJSON

func (x *BalanceRequest_Body) MarshalEasyJSON(out *jwriter.Writer)

func (*BalanceRequest_Body) MarshalJSON

func (x *BalanceRequest_Body) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*BalanceRequest_Body) MarshalProtobuf

func (x *BalanceRequest_Body) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*BalanceRequest_Body) SetOwnerId

func (x *BalanceRequest_Body) SetOwnerId(v *grpc.OwnerID)

func (*BalanceRequest_Body) StableSize

func (x *BalanceRequest_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*BalanceRequest_Body) UnmarshalEasyJSON

func (x *BalanceRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*BalanceRequest_Body) UnmarshalJSON

func (x *BalanceRequest_Body) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*BalanceRequest_Body) UnmarshalProtobuf

func (x *BalanceRequest_Body) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type BalanceResponse

type BalanceResponse struct {
	Body         *BalanceResponse_Body             `json:"body"`
	MetaHeader   *grpc1.ResponseMetaHeader         `json:"metaHeader"`
	VerifyHeader *grpc1.ResponseVerificationHeader `json:"verifyHeader"`
}

func (*BalanceResponse) EmitProtobuf

func (x *BalanceResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*BalanceResponse) GetBody

func (x *BalanceResponse) GetBody() *BalanceResponse_Body

func (*BalanceResponse) GetMetaHeader

func (x *BalanceResponse) GetMetaHeader() *grpc1.ResponseMetaHeader

func (*BalanceResponse) GetVerifyHeader

func (x *BalanceResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader

func (*BalanceResponse) MarshalEasyJSON

func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer)

func (*BalanceResponse) MarshalJSON

func (x *BalanceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*BalanceResponse) MarshalProtobuf

func (x *BalanceResponse) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*BalanceResponse) ReadSignedData

func (x *BalanceResponse) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*BalanceResponse) SetBody

func (x *BalanceResponse) SetBody(v *BalanceResponse_Body)

func (*BalanceResponse) SetMetaHeader

func (x *BalanceResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)

func (*BalanceResponse) SetVerifyHeader

func (x *BalanceResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)

func (*BalanceResponse) SignedDataSize

func (x *BalanceResponse) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*BalanceResponse) StableSize

func (x *BalanceResponse) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*BalanceResponse) UnmarshalEasyJSON

func (x *BalanceResponse) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*BalanceResponse) UnmarshalJSON

func (x *BalanceResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*BalanceResponse) UnmarshalProtobuf

func (x *BalanceResponse) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type BalanceResponse_Body

type BalanceResponse_Body struct {
	Balance *Decimal `json:"balance"`
}

func (*BalanceResponse_Body) EmitProtobuf

func (x *BalanceResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*BalanceResponse_Body) GetBalance

func (x *BalanceResponse_Body) GetBalance() *Decimal

func (*BalanceResponse_Body) MarshalEasyJSON

func (x *BalanceResponse_Body) MarshalEasyJSON(out *jwriter.Writer)

func (*BalanceResponse_Body) MarshalJSON

func (x *BalanceResponse_Body) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*BalanceResponse_Body) MarshalProtobuf

func (x *BalanceResponse_Body) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*BalanceResponse_Body) SetBalance

func (x *BalanceResponse_Body) SetBalance(v *Decimal)

func (*BalanceResponse_Body) StableSize

func (x *BalanceResponse_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*BalanceResponse_Body) UnmarshalEasyJSON

func (x *BalanceResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*BalanceResponse_Body) UnmarshalJSON

func (x *BalanceResponse_Body) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*BalanceResponse_Body) UnmarshalProtobuf

func (x *BalanceResponse_Body) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type Decimal

type Decimal struct {
	Value     int64  `json:"value"`
	Precision uint32 `json:"precision"`
}

func (*Decimal) EmitProtobuf

func (x *Decimal) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*Decimal) GetPrecision

func (x *Decimal) GetPrecision() uint32

func (*Decimal) GetValue

func (x *Decimal) GetValue() int64

func (*Decimal) MarshalEasyJSON

func (x *Decimal) MarshalEasyJSON(out *jwriter.Writer)

func (*Decimal) MarshalJSON

func (x *Decimal) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Decimal) MarshalProtobuf

func (x *Decimal) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*Decimal) SetPrecision

func (x *Decimal) SetPrecision(v uint32)

func (*Decimal) SetValue

func (x *Decimal) SetValue(v int64)

func (*Decimal) StableSize

func (x *Decimal) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*Decimal) UnmarshalEasyJSON

func (x *Decimal) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*Decimal) UnmarshalJSON

func (x *Decimal) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Decimal) UnmarshalProtobuf

func (x *Decimal) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type UnimplementedAccountingServiceServer

type UnimplementedAccountingServiceServer struct {
}

UnimplementedAccountingServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAccountingServiceServer) Balance

type UnsafeAccountingServiceServer

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

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

Jump to

Keyboard shortcuts

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