Documentation ¶
Index ¶
- Variables
- func RegisterPartyServiceServer(s *grpc.Server, srv PartyServiceServer)
- type Party
- func (*Party) Descriptor() ([]byte, []int)
- func (m *Party) GetAadhaar() int64
- func (m *Party) GetAddressLine1() string
- func (m *Party) GetAddressLine2() string
- func (m *Party) GetAddressLine3() string
- func (m *Party) GetCity() string
- func (m *Party) GetDataOfBirth() string
- func (m *Party) GetEmail() string
- func (m *Party) GetFirstName() string
- func (m *Party) GetGender() Party_Gender
- func (m *Party) GetId() int64
- func (m *Party) GetLastName() string
- func (m *Party) GetLatitude() float64
- func (m *Party) GetLongitude() float64
- func (m *Party) GetPanNumber() string
- func (m *Party) GetPhones() []*Party_PhoneNumber
- func (m *Party) GetPinCode() int32
- func (*Party) ProtoMessage()
- func (m *Party) Reset()
- func (m *Party) String() string
- func (m *Party) XXX_DiscardUnknown()
- func (m *Party) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Party) XXX_Merge(src proto.Message)
- func (m *Party) XXX_Size() int
- func (m *Party) XXX_Unmarshal(b []byte) error
- type PartyRequest
- func (*PartyRequest) Descriptor() ([]byte, []int)
- func (m *PartyRequest) GetApi() string
- func (m *PartyRequest) GetParty() *Party
- func (*PartyRequest) ProtoMessage()
- func (m *PartyRequest) Reset()
- func (m *PartyRequest) String() string
- func (m *PartyRequest) XXX_DiscardUnknown()
- func (m *PartyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PartyRequest) XXX_Merge(src proto.Message)
- func (m *PartyRequest) XXX_Size() int
- func (m *PartyRequest) XXX_Unmarshal(b []byte) error
- type PartyResponse
- func (*PartyResponse) Descriptor() ([]byte, []int)
- func (m *PartyResponse) GetParty() *Party
- func (*PartyResponse) ProtoMessage()
- func (m *PartyResponse) Reset()
- func (m *PartyResponse) String() string
- func (m *PartyResponse) XXX_DiscardUnknown()
- func (m *PartyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PartyResponse) XXX_Merge(src proto.Message)
- func (m *PartyResponse) XXX_Size() int
- func (m *PartyResponse) XXX_Unmarshal(b []byte) error
- type PartyServiceClient
- type PartyServiceServer
- type Party_Gender
- type Party_PhoneNumber
- func (*Party_PhoneNumber) Descriptor() ([]byte, []int)
- func (m *Party_PhoneNumber) GetNumber() string
- func (m *Party_PhoneNumber) GetType() Party_PhoneType
- func (*Party_PhoneNumber) ProtoMessage()
- func (m *Party_PhoneNumber) Reset()
- func (m *Party_PhoneNumber) String() string
- func (m *Party_PhoneNumber) XXX_DiscardUnknown()
- func (m *Party_PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Party_PhoneNumber) XXX_Merge(src proto.Message)
- func (m *Party_PhoneNumber) XXX_Size() int
- func (m *Party_PhoneNumber) XXX_Unmarshal(b []byte) error
- type Party_PhoneType
- type UnimplementedPartyServiceServer
- func (*UnimplementedPartyServiceServer) CreateParty(ctx context.Context, req *PartyRequest) (*Party, error)
- func (*UnimplementedPartyServiceServer) GetParty(ctx context.Context, req *PartyRequest) (*Party, error)
- func (*UnimplementedPartyServiceServer) UpdateParty(ctx context.Context, req *PartyRequest) (*Party, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Party_Gender_name = map[int32]string{
0: "MALE",
1: "FEMALE",
}
View Source
var Party_Gender_value = map[string]int32{
"MALE": 0,
"FEMALE": 1,
}
View Source
var Party_PhoneType_name = map[int32]string{
0: "MOBILE",
1: "HOME",
2: "WORK",
}
View Source
var Party_PhoneType_value = map[string]int32{
"MOBILE": 0,
"HOME": 1,
"WORK": 2,
}
Functions ¶
func RegisterPartyServiceServer ¶
func RegisterPartyServiceServer(s *grpc.Server, srv PartyServiceServer)
Types ¶
type Party ¶
type Party struct { FirstName string `protobuf:"bytes,1,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,2,opt,name=lastName,proto3" json:"lastName,omitempty"` Gender Party_Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=party.v1.Party_Gender" json:"gender,omitempty"` DataOfBirth string `protobuf:"bytes,4,opt,name=dataOfBirth,proto3" json:"dataOfBirth,omitempty"` Phones []*Party_PhoneNumber `protobuf:"bytes,5,rep,name=phones,proto3" json:"phones,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` AddressLine1 string `protobuf:"bytes,7,opt,name=addressLine1,proto3" json:"addressLine1,omitempty"` AddressLine2 string `protobuf:"bytes,8,opt,name=addressLine2,proto3" json:"addressLine2,omitempty"` AddressLine3 string `protobuf:"bytes,9,opt,name=addressLine3,proto3" json:"addressLine3,omitempty"` PinCode int32 `protobuf:"varint,10,opt,name=pinCode,proto3" json:"pinCode,omitempty"` City string `protobuf:"bytes,11,opt,name=city,proto3" json:"city,omitempty"` Latitude float64 `protobuf:"fixed64,12,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,13,opt,name=longitude,proto3" json:"longitude,omitempty"` PanNumber string `protobuf:"bytes,14,opt,name=panNumber,proto3" json:"panNumber,omitempty"` Aadhaar int64 `protobuf:"varint,15,opt,name=aadhaar,proto3" json:"aadhaar,omitempty"` Id int64 `protobuf:"varint,16,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Party) Descriptor ¶
func (*Party) GetAadhaar ¶
func (*Party) GetAddressLine1 ¶
func (*Party) GetAddressLine2 ¶
func (*Party) GetAddressLine3 ¶
func (*Party) GetDataOfBirth ¶
func (*Party) GetFirstName ¶
func (*Party) GetGender ¶
func (m *Party) GetGender() Party_Gender
func (*Party) GetLastName ¶
func (*Party) GetLatitude ¶
func (*Party) GetLongitude ¶
func (*Party) GetPanNumber ¶
func (*Party) GetPhones ¶
func (m *Party) GetPhones() []*Party_PhoneNumber
func (*Party) GetPinCode ¶
func (*Party) ProtoMessage ¶
func (*Party) ProtoMessage()
func (*Party) XXX_DiscardUnknown ¶
func (m *Party) XXX_DiscardUnknown()
func (*Party) XXX_Marshal ¶
func (*Party) XXX_Unmarshal ¶
type PartyRequest ¶
type PartyRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Party *Party `protobuf:"bytes,2,opt,name=party,proto3" json:"party,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PartyRequest) Descriptor ¶
func (*PartyRequest) Descriptor() ([]byte, []int)
func (*PartyRequest) GetApi ¶
func (m *PartyRequest) GetApi() string
func (*PartyRequest) GetParty ¶
func (m *PartyRequest) GetParty() *Party
func (*PartyRequest) ProtoMessage ¶
func (*PartyRequest) ProtoMessage()
func (*PartyRequest) Reset ¶
func (m *PartyRequest) Reset()
func (*PartyRequest) String ¶
func (m *PartyRequest) String() string
func (*PartyRequest) XXX_DiscardUnknown ¶
func (m *PartyRequest) XXX_DiscardUnknown()
func (*PartyRequest) XXX_Marshal ¶
func (m *PartyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PartyRequest) XXX_Merge ¶
func (m *PartyRequest) XXX_Merge(src proto.Message)
func (*PartyRequest) XXX_Size ¶
func (m *PartyRequest) XXX_Size() int
func (*PartyRequest) XXX_Unmarshal ¶
func (m *PartyRequest) XXX_Unmarshal(b []byte) error
type PartyResponse ¶
type PartyResponse struct { Party *Party `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PartyResponse) Descriptor ¶
func (*PartyResponse) Descriptor() ([]byte, []int)
func (*PartyResponse) GetParty ¶
func (m *PartyResponse) GetParty() *Party
func (*PartyResponse) ProtoMessage ¶
func (*PartyResponse) ProtoMessage()
func (*PartyResponse) Reset ¶
func (m *PartyResponse) Reset()
func (*PartyResponse) String ¶
func (m *PartyResponse) String() string
func (*PartyResponse) XXX_DiscardUnknown ¶
func (m *PartyResponse) XXX_DiscardUnknown()
func (*PartyResponse) XXX_Marshal ¶
func (m *PartyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PartyResponse) XXX_Merge ¶
func (m *PartyResponse) XXX_Merge(src proto.Message)
func (*PartyResponse) XXX_Size ¶
func (m *PartyResponse) XXX_Size() int
func (*PartyResponse) XXX_Unmarshal ¶
func (m *PartyResponse) XXX_Unmarshal(b []byte) error
type PartyServiceClient ¶
type PartyServiceClient interface { CreateParty(ctx context.Context, in *PartyRequest, opts ...grpc.CallOption) (*Party, error) GetParty(ctx context.Context, in *PartyRequest, opts ...grpc.CallOption) (*Party, error) UpdateParty(ctx context.Context, in *PartyRequest, opts ...grpc.CallOption) (*Party, error) }
PartyServiceClient is the client API for PartyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPartyServiceClient ¶
func NewPartyServiceClient(cc *grpc.ClientConn) PartyServiceClient
type PartyServiceServer ¶
type PartyServiceServer interface { CreateParty(context.Context, *PartyRequest) (*Party, error) GetParty(context.Context, *PartyRequest) (*Party, error) UpdateParty(context.Context, *PartyRequest) (*Party, error) }
PartyServiceServer is the server API for PartyService service.
type Party_Gender ¶
type Party_Gender int32
const ( Party_MALE Party_Gender = 0 Party_FEMALE Party_Gender = 1 )
func (Party_Gender) EnumDescriptor ¶
func (Party_Gender) EnumDescriptor() ([]byte, []int)
func (Party_Gender) String ¶
func (x Party_Gender) String() string
type Party_PhoneNumber ¶
type Party_PhoneNumber struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` Type Party_PhoneType `protobuf:"varint,2,opt,name=type,proto3,enum=party.v1.Party_PhoneType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Party_PhoneNumber) Descriptor ¶
func (*Party_PhoneNumber) Descriptor() ([]byte, []int)
func (*Party_PhoneNumber) GetNumber ¶
func (m *Party_PhoneNumber) GetNumber() string
func (*Party_PhoneNumber) GetType ¶
func (m *Party_PhoneNumber) GetType() Party_PhoneType
func (*Party_PhoneNumber) ProtoMessage ¶
func (*Party_PhoneNumber) ProtoMessage()
func (*Party_PhoneNumber) Reset ¶
func (m *Party_PhoneNumber) Reset()
func (*Party_PhoneNumber) String ¶
func (m *Party_PhoneNumber) String() string
func (*Party_PhoneNumber) XXX_DiscardUnknown ¶
func (m *Party_PhoneNumber) XXX_DiscardUnknown()
func (*Party_PhoneNumber) XXX_Marshal ¶
func (m *Party_PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Party_PhoneNumber) XXX_Merge ¶
func (m *Party_PhoneNumber) XXX_Merge(src proto.Message)
func (*Party_PhoneNumber) XXX_Size ¶
func (m *Party_PhoneNumber) XXX_Size() int
func (*Party_PhoneNumber) XXX_Unmarshal ¶
func (m *Party_PhoneNumber) XXX_Unmarshal(b []byte) error
type Party_PhoneType ¶
type Party_PhoneType int32
const ( Party_MOBILE Party_PhoneType = 0 Party_HOME Party_PhoneType = 1 Party_WORK Party_PhoneType = 2 )
func (Party_PhoneType) EnumDescriptor ¶
func (Party_PhoneType) EnumDescriptor() ([]byte, []int)
func (Party_PhoneType) String ¶
func (x Party_PhoneType) String() string
type UnimplementedPartyServiceServer ¶
type UnimplementedPartyServiceServer struct { }
UnimplementedPartyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPartyServiceServer) CreateParty ¶
func (*UnimplementedPartyServiceServer) CreateParty(ctx context.Context, req *PartyRequest) (*Party, error)
func (*UnimplementedPartyServiceServer) GetParty ¶
func (*UnimplementedPartyServiceServer) GetParty(ctx context.Context, req *PartyRequest) (*Party, error)
func (*UnimplementedPartyServiceServer) UpdateParty ¶
func (*UnimplementedPartyServiceServer) UpdateParty(ctx context.Context, req *PartyRequest) (*Party, error)
Click to show internal directories.
Click to hide internal directories.