Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAccountingServiceServer(s grpc.ServiceRegistrar, srv AccountingServiceServer)
- type AccountingServiceClient
- type AccountingServiceServer
- type BalanceRequest
- func (x *BalanceRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *BalanceRequest) GetBody() *BalanceRequest_Body
- func (x *BalanceRequest) GetMetaHeader() *grpc1.RequestMetaHeader
- func (x *BalanceRequest) GetVerifyHeader() *grpc1.RequestVerificationHeader
- func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *BalanceRequest) MarshalJSON() ([]byte, error)
- func (x *BalanceRequest) MarshalProtobuf(dst []byte) []byte
- func (x *BalanceRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *BalanceRequest) SetBody(v *BalanceRequest_Body)
- func (x *BalanceRequest) SetMetaHeader(v *grpc1.RequestMetaHeader)
- func (x *BalanceRequest) SetVerifyHeader(v *grpc1.RequestVerificationHeader)
- func (x *BalanceRequest) SignedDataSize() int
- func (x *BalanceRequest) StableSize() (size int)
- func (x *BalanceRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *BalanceRequest) UnmarshalJSON(data []byte) error
- func (x *BalanceRequest) UnmarshalProtobuf(src []byte) (err error)
- type BalanceRequest_Body
- func (x *BalanceRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *BalanceRequest_Body) GetOwnerId() *grpc.OwnerID
- func (x *BalanceRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *BalanceRequest_Body) MarshalJSON() ([]byte, error)
- func (x *BalanceRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *BalanceRequest_Body) SetOwnerId(v *grpc.OwnerID)
- func (x *BalanceRequest_Body) StableSize() (size int)
- func (x *BalanceRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *BalanceRequest_Body) UnmarshalJSON(data []byte) error
- func (x *BalanceRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type BalanceResponse
- func (x *BalanceResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *BalanceResponse) GetBody() *BalanceResponse_Body
- func (x *BalanceResponse) GetMetaHeader() *grpc1.ResponseMetaHeader
- func (x *BalanceResponse) GetVerifyHeader() *grpc1.ResponseVerificationHeader
- func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *BalanceResponse) MarshalJSON() ([]byte, error)
- func (x *BalanceResponse) MarshalProtobuf(dst []byte) []byte
- func (x *BalanceResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *BalanceResponse) SetBody(v *BalanceResponse_Body)
- func (x *BalanceResponse) SetMetaHeader(v *grpc1.ResponseMetaHeader)
- func (x *BalanceResponse) SetVerifyHeader(v *grpc1.ResponseVerificationHeader)
- func (x *BalanceResponse) SignedDataSize() int
- func (x *BalanceResponse) StableSize() (size int)
- func (x *BalanceResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *BalanceResponse) UnmarshalJSON(data []byte) error
- func (x *BalanceResponse) UnmarshalProtobuf(src []byte) (err error)
- type BalanceResponse_Body
- func (x *BalanceResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *BalanceResponse_Body) GetBalance() *Decimal
- func (x *BalanceResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *BalanceResponse_Body) MarshalJSON() ([]byte, error)
- func (x *BalanceResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *BalanceResponse_Body) SetBalance(v *Decimal)
- func (x *BalanceResponse_Body) StableSize() (size int)
- func (x *BalanceResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *BalanceResponse_Body) UnmarshalJSON(data []byte) error
- func (x *BalanceResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type Decimal
- func (x *Decimal) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Decimal) GetPrecision() uint32
- func (x *Decimal) GetValue() int64
- func (x *Decimal) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Decimal) MarshalJSON() ([]byte, error)
- func (x *Decimal) MarshalProtobuf(dst []byte) []byte
- func (x *Decimal) SetPrecision(v uint32)
- func (x *Decimal) SetValue(v int64)
- func (x *Decimal) StableSize() (size int)
- func (x *Decimal) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Decimal) UnmarshalJSON(data []byte) error
- func (x *Decimal) UnmarshalProtobuf(src []byte) (err error)
- type UnimplementedAccountingServiceServer
- type UnsafeAccountingServiceServer
Constants ¶
const (
AccountingService_Balance_FullMethodName = "/neo.fs.v2.accounting.AccountingService/Balance"
)
Variables ¶
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.
func NewAccountingServiceClient ¶
func NewAccountingServiceClient(cc grpc.ClientConnInterface) AccountingServiceClient
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 ¶
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 ¶
func (*Decimal) EmitProtobuf ¶
func (x *Decimal) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Decimal) GetPrecision ¶
func (*Decimal) MarshalEasyJSON ¶
func (*Decimal) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Decimal) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Decimal) SetPrecision ¶
func (*Decimal) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Decimal) UnmarshalEasyJSON ¶
func (*Decimal) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Decimal) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type UnimplementedAccountingServiceServer ¶
type UnimplementedAccountingServiceServer struct { }
UnimplementedAccountingServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAccountingServiceServer) Balance ¶
func (UnimplementedAccountingServiceServer) Balance(context.Context, *BalanceRequest) (*BalanceResponse, error)
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.