Will also be adding in a RESTful endpoint to the server as well so it can consume both types
474 lines
17 KiB
Go
474 lines
17 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: accounts.proto
|
|
|
|
package accounts
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
// RegisterInfo contains the information needed to register an account
|
|
type RegisterInfo struct {
|
|
// The name for the account, must be unique
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterInfo) Reset() { *m = RegisterInfo{} }
|
|
func (m *RegisterInfo) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterInfo) ProtoMessage() {}
|
|
func (*RegisterInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e1e7723af4c007b7, []int{0}
|
|
}
|
|
|
|
func (m *RegisterInfo) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterInfo.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterInfo.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RegisterInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterInfo.Merge(m, src)
|
|
}
|
|
func (m *RegisterInfo) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterInfo.Size(m)
|
|
}
|
|
func (m *RegisterInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterInfo proto.InternalMessageInfo
|
|
|
|
func (m *RegisterInfo) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// RegisterResponse is the response information from registering an account
|
|
type RegisterResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterResponse) Reset() { *m = RegisterResponse{} }
|
|
func (m *RegisterResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterResponse) ProtoMessage() {}
|
|
func (*RegisterResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e1e7723af4c007b7, []int{1}
|
|
}
|
|
|
|
func (m *RegisterResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RegisterResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterResponse.Merge(m, src)
|
|
}
|
|
func (m *RegisterResponse) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterResponse.Size(m)
|
|
}
|
|
func (m *RegisterResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterResponse proto.InternalMessageInfo
|
|
|
|
// DataKeyValue represents a simple key value pair to assign to an account
|
|
type DataKeyValue struct {
|
|
// The account to assign the new key value pair to
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
// The key value pair to assign
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DataKeyValue) Reset() { *m = DataKeyValue{} }
|
|
func (m *DataKeyValue) String() string { return proto.CompactTextString(m) }
|
|
func (*DataKeyValue) ProtoMessage() {}
|
|
func (*DataKeyValue) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e1e7723af4c007b7, []int{2}
|
|
}
|
|
|
|
func (m *DataKeyValue) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DataKeyValue.Unmarshal(m, b)
|
|
}
|
|
func (m *DataKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DataKeyValue.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DataKeyValue) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DataKeyValue.Merge(m, src)
|
|
}
|
|
func (m *DataKeyValue) XXX_Size() int {
|
|
return xxx_messageInfo_DataKeyValue.Size(m)
|
|
}
|
|
func (m *DataKeyValue) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DataKeyValue.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DataKeyValue proto.InternalMessageInfo
|
|
|
|
func (m *DataKeyValue) GetAccount() string {
|
|
if m != nil {
|
|
return m.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DataKeyValue) GetKey() string {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DataKeyValue) GetValue() string {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// DataKeyResponse is a simple response
|
|
type DataKeyResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DataKeyResponse) Reset() { *m = DataKeyResponse{} }
|
|
func (m *DataKeyResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DataKeyResponse) ProtoMessage() {}
|
|
func (*DataKeyResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e1e7723af4c007b7, []int{3}
|
|
}
|
|
|
|
func (m *DataKeyResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DataKeyResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *DataKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DataKeyResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DataKeyResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DataKeyResponse.Merge(m, src)
|
|
}
|
|
func (m *DataKeyResponse) XXX_Size() int {
|
|
return xxx_messageInfo_DataKeyResponse.Size(m)
|
|
}
|
|
func (m *DataKeyResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DataKeyResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DataKeyResponse proto.InternalMessageInfo
|
|
|
|
// DataKey describes a simple key value with an account, for fetching
|
|
type DataKey struct {
|
|
// The account to fetch data for
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
// The key to fetch
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DataKey) Reset() { *m = DataKey{} }
|
|
func (m *DataKey) String() string { return proto.CompactTextString(m) }
|
|
func (*DataKey) ProtoMessage() {}
|
|
func (*DataKey) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e1e7723af4c007b7, []int{4}
|
|
}
|
|
|
|
func (m *DataKey) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DataKey.Unmarshal(m, b)
|
|
}
|
|
func (m *DataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DataKey.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DataKey) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DataKey.Merge(m, src)
|
|
}
|
|
func (m *DataKey) XXX_Size() int {
|
|
return xxx_messageInfo_DataKey.Size(m)
|
|
}
|
|
func (m *DataKey) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DataKey.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DataKey proto.InternalMessageInfo
|
|
|
|
func (m *DataKey) GetAccount() string {
|
|
if m != nil {
|
|
return m.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DataKey) GetKey() string {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// DataResponse describes a data fetch response
|
|
type DataResponse struct {
|
|
// The value of the key
|
|
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DataResponse) Reset() { *m = DataResponse{} }
|
|
func (m *DataResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DataResponse) ProtoMessage() {}
|
|
func (*DataResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e1e7723af4c007b7, []int{5}
|
|
}
|
|
|
|
func (m *DataResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DataResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *DataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DataResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DataResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DataResponse.Merge(m, src)
|
|
}
|
|
func (m *DataResponse) XXX_Size() int {
|
|
return xxx_messageInfo_DataResponse.Size(m)
|
|
}
|
|
func (m *DataResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DataResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DataResponse proto.InternalMessageInfo
|
|
|
|
func (m *DataResponse) GetValue() string {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*RegisterInfo)(nil), "accounts.RegisterInfo")
|
|
proto.RegisterType((*RegisterResponse)(nil), "accounts.RegisterResponse")
|
|
proto.RegisterType((*DataKeyValue)(nil), "accounts.DataKeyValue")
|
|
proto.RegisterType((*DataKeyResponse)(nil), "accounts.DataKeyResponse")
|
|
proto.RegisterType((*DataKey)(nil), "accounts.DataKey")
|
|
proto.RegisterType((*DataResponse)(nil), "accounts.DataResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("accounts.proto", fileDescriptor_e1e7723af4c007b7)
|
|
}
|
|
|
|
var fileDescriptor_e1e7723af4c007b7 = []byte{
|
|
// 276 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x41, 0x4b, 0xc3, 0x40,
|
|
0x10, 0x85, 0x8d, 0x55, 0x1b, 0xc7, 0xa2, 0xed, 0x20, 0x12, 0x73, 0x92, 0x55, 0xc1, 0x53, 0x02,
|
|
0x8a, 0x78, 0xb5, 0x45, 0x10, 0xf1, 0x22, 0x39, 0x78, 0xf0, 0xb6, 0x8d, 0x63, 0x0c, 0x6d, 0x76,
|
|
0x43, 0x76, 0x53, 0xa8, 0x7f, 0xd1, 0x3f, 0x25, 0xc9, 0x66, 0x63, 0x30, 0x5e, 0x7a, 0x9b, 0x79,
|
|
0xcc, 0xfb, 0x66, 0xf6, 0x2d, 0x1c, 0xf2, 0x38, 0x96, 0xa5, 0xd0, 0x2a, 0xc8, 0x0b, 0xa9, 0x25,
|
|
0xba, 0xb6, 0x67, 0x0c, 0x46, 0x11, 0x25, 0xa9, 0xd2, 0x54, 0x3c, 0x89, 0x0f, 0x89, 0x08, 0x3b,
|
|
0x82, 0x67, 0xe4, 0x39, 0x67, 0xce, 0xd5, 0x7e, 0x54, 0xd7, 0x0c, 0x61, 0x6c, 0x67, 0x22, 0x52,
|
|
0xb9, 0x14, 0x8a, 0xd8, 0x0b, 0x8c, 0x1e, 0xb8, 0xe6, 0xcf, 0xb4, 0x7e, 0xe5, 0xcb, 0x92, 0xd0,
|
|
0x83, 0x61, 0xc3, 0x6c, 0xac, 0xb6, 0xc5, 0x31, 0x0c, 0x16, 0xb4, 0xf6, 0xb6, 0x6b, 0xb5, 0x2a,
|
|
0xf1, 0x18, 0x76, 0x57, 0x95, 0xc9, 0x1b, 0xd4, 0x9a, 0x69, 0xd8, 0x04, 0x8e, 0x1a, 0x62, 0xbb,
|
|
0xe4, 0x16, 0x86, 0x8d, 0xb4, 0x09, 0x9f, 0x5d, 0x98, 0xdb, 0x2c, 0xe6, 0xff, 0x7d, 0xd7, 0xdf,
|
|
0x0e, 0xc0, 0xd4, 0x30, 0xb8, 0xd0, 0x78, 0x0f, 0xae, 0x7d, 0x24, 0x9e, 0x04, 0x6d, 0x5e, 0xdd,
|
|
0x70, 0x7c, 0xbf, 0xaf, 0xb7, 0xb7, 0x6e, 0xe1, 0x0c, 0x0e, 0xa6, 0x4a, 0xa5, 0x89, 0x30, 0x89,
|
|
0x74, 0x20, 0xdd, 0xa4, 0xfc, 0xd3, 0x9e, 0xde, 0x61, 0xdc, 0x81, 0xfb, 0x48, 0xda, 0x00, 0x26,
|
|
0xbd, 0x41, 0xff, 0x0f, 0xf3, 0xd7, 0x38, 0xbb, 0x7c, 0x3b, 0x4f, 0x52, 0xfd, 0x59, 0xce, 0x83,
|
|
0x58, 0x66, 0x61, 0xf6, 0x9e, 0x2e, 0xcb, 0xaf, 0xb0, 0x90, 0x2b, 0x0a, 0xf3, 0x45, 0x12, 0x5a,
|
|
0xd7, 0x7c, 0xaf, 0xfe, 0xff, 0x9b, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x22, 0x35, 0x31, 0x6f,
|
|
0x11, 0x02, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConnInterface
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
// AccountantClient is the client API for Accountant service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type AccountantClient interface {
|
|
// Register should create a new account in the database
|
|
// It will return an error if the account already exists
|
|
Register(ctx context.Context, in *RegisterInfo, opts ...grpc.CallOption) (*RegisterResponse, error)
|
|
// AssignValue assigns a key-value pair to an account, or overwrites an existing key
|
|
AssignValue(ctx context.Context, in *DataKeyValue, opts ...grpc.CallOption) (*DataKeyResponse, error)
|
|
// GetValue will get the value for a key for an account
|
|
GetValue(ctx context.Context, in *DataKey, opts ...grpc.CallOption) (*DataResponse, error)
|
|
}
|
|
|
|
type accountantClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewAccountantClient(cc grpc.ClientConnInterface) AccountantClient {
|
|
return &accountantClient{cc}
|
|
}
|
|
|
|
func (c *accountantClient) Register(ctx context.Context, in *RegisterInfo, opts ...grpc.CallOption) (*RegisterResponse, error) {
|
|
out := new(RegisterResponse)
|
|
err := c.cc.Invoke(ctx, "/accounts.Accountant/Register", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *accountantClient) AssignValue(ctx context.Context, in *DataKeyValue, opts ...grpc.CallOption) (*DataKeyResponse, error) {
|
|
out := new(DataKeyResponse)
|
|
err := c.cc.Invoke(ctx, "/accounts.Accountant/AssignValue", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *accountantClient) GetValue(ctx context.Context, in *DataKey, opts ...grpc.CallOption) (*DataResponse, error) {
|
|
out := new(DataResponse)
|
|
err := c.cc.Invoke(ctx, "/accounts.Accountant/GetValue", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// AccountantServer is the server API for Accountant service.
|
|
type AccountantServer interface {
|
|
// Register should create a new account in the database
|
|
// It will return an error if the account already exists
|
|
Register(context.Context, *RegisterInfo) (*RegisterResponse, error)
|
|
// AssignValue assigns a key-value pair to an account, or overwrites an existing key
|
|
AssignValue(context.Context, *DataKeyValue) (*DataKeyResponse, error)
|
|
// GetValue will get the value for a key for an account
|
|
GetValue(context.Context, *DataKey) (*DataResponse, error)
|
|
}
|
|
|
|
// UnimplementedAccountantServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedAccountantServer struct {
|
|
}
|
|
|
|
func (*UnimplementedAccountantServer) Register(ctx context.Context, req *RegisterInfo) (*RegisterResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
|
|
}
|
|
func (*UnimplementedAccountantServer) AssignValue(ctx context.Context, req *DataKeyValue) (*DataKeyResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method AssignValue not implemented")
|
|
}
|
|
func (*UnimplementedAccountantServer) GetValue(ctx context.Context, req *DataKey) (*DataResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetValue not implemented")
|
|
}
|
|
|
|
func RegisterAccountantServer(s *grpc.Server, srv AccountantServer) {
|
|
s.RegisterService(&_Accountant_serviceDesc, srv)
|
|
}
|
|
|
|
func _Accountant_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RegisterInfo)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AccountantServer).Register(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/accounts.Accountant/Register",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AccountantServer).Register(ctx, req.(*RegisterInfo))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Accountant_AssignValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DataKeyValue)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AccountantServer).AssignValue(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/accounts.Accountant/AssignValue",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AccountantServer).AssignValue(ctx, req.(*DataKeyValue))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Accountant_GetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DataKey)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AccountantServer).GetValue(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/accounts.Accountant/GetValue",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AccountantServer).GetValue(ctx, req.(*DataKey))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Accountant_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "accounts.Accountant",
|
|
HandlerType: (*AccountantServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Register",
|
|
Handler: _Accountant_Register_Handler,
|
|
},
|
|
{
|
|
MethodName: "AssignValue",
|
|
Handler: _Accountant_AssignValue_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetValue",
|
|
Handler: _Accountant_GetValue_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "accounts.proto",
|
|
}
|