Documentation ¶
Index ¶
- func RegisterCompanyHandlerServer(s *grpc.Server, srv CompanyHandlerServer)
- type Company
- func (*Company) Descriptor() ([]byte, []int)
- func (m *Company) GetAddress() string
- func (m *Company) GetCity() int64
- func (m *Company) GetCompanyName() string
- func (m *Company) GetCountry() int64
- func (m *Company) GetDescription() string
- func (m *Company) GetID() int64
- func (m *Company) GetPhone() string
- func (m *Company) GetSite() string
- func (m *Company) GetTagLine() string
- func (*Company) ProtoMessage()
- func (m *Company) Reset()
- func (m *Company) String() string
- func (m *Company) XXX_DiscardUnknown()
- func (m *Company) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Company) XXX_Merge(src proto.Message)
- func (m *Company) XXX_Size() int
- func (m *Company) XXX_Unmarshal(b []byte) error
- type CompanyHandlerClient
- type CompanyHandlerServer
- type CompanyID
- func (*CompanyID) Descriptor() ([]byte, []int)
- func (m *CompanyID) GetID() int64
- func (*CompanyID) ProtoMessage()
- func (m *CompanyID) Reset()
- func (m *CompanyID) String() string
- func (m *CompanyID) XXX_DiscardUnknown()
- func (m *CompanyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompanyID) XXX_Merge(src proto.Message)
- func (m *CompanyID) XXX_Size() int
- func (m *CompanyID) XXX_Unmarshal(b []byte) error
- type CompanyOutput
- func (*CompanyOutput) Descriptor() ([]byte, []int)
- func (m *CompanyOutput) GetAddress() string
- func (m *CompanyOutput) GetCity() string
- func (m *CompanyOutput) GetCompanyName() string
- func (m *CompanyOutput) GetCountry() string
- func (m *CompanyOutput) GetDescription() string
- func (m *CompanyOutput) GetID() int64
- func (m *CompanyOutput) GetPhone() string
- func (m *CompanyOutput) GetSite() string
- func (m *CompanyOutput) GetTagLine() string
- func (*CompanyOutput) ProtoMessage()
- func (m *CompanyOutput) Reset()
- func (m *CompanyOutput) String() string
- func (m *CompanyOutput) XXX_DiscardUnknown()
- func (m *CompanyOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompanyOutput) XXX_Merge(src proto.Message)
- func (m *CompanyOutput) XXX_Size() int
- func (m *CompanyOutput) XXX_Unmarshal(b []byte) error
- type CompanyWithUser
- func (*CompanyWithUser) Descriptor() ([]byte, []int)
- func (m *CompanyWithUser) GetMyCompany() *Company
- func (m *CompanyWithUser) GetUserID() int64
- func (*CompanyWithUser) ProtoMessage()
- func (m *CompanyWithUser) Reset()
- func (m *CompanyWithUser) String() string
- func (m *CompanyWithUser) XXX_DiscardUnknown()
- func (m *CompanyWithUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompanyWithUser) XXX_Merge(src proto.Message)
- func (m *CompanyWithUser) XXX_Size() int
- func (m *CompanyWithUser) XXX_Unmarshal(b []byte) error
- type Nothing
- func (*Nothing) Descriptor() ([]byte, []int)
- func (m *Nothing) GetDummy() bool
- func (*Nothing) ProtoMessage()
- func (m *Nothing) Reset()
- func (m *Nothing) String() string
- func (m *Nothing) XXX_DiscardUnknown()
- func (m *Nothing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Nothing) XXX_Merge(src proto.Message)
- func (m *Nothing) XXX_Size() int
- func (m *Nothing) XXX_Unmarshal(b []byte) error
- type UnimplementedCompanyHandlerServer
- func (*UnimplementedCompanyHandlerServer) CreateCompany(ctx context.Context, req *UserID) (*Company, error)
- func (*UnimplementedCompanyHandlerServer) Edit(ctx context.Context, req *CompanyWithUser) (*Nothing, error)
- func (*UnimplementedCompanyHandlerServer) Find(ctx context.Context, req *CompanyID) (*CompanyOutput, error)
- type UserID
- func (*UserID) Descriptor() ([]byte, []int)
- func (m *UserID) GetID() int64
- func (*UserID) ProtoMessage()
- func (m *UserID) Reset()
- func (m *UserID) String() string
- func (m *UserID) XXX_DiscardUnknown()
- func (m *UserID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserID) XXX_Merge(src proto.Message)
- func (m *UserID) XXX_Size() int
- func (m *UserID) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCompanyHandlerServer ¶
func RegisterCompanyHandlerServer(s *grpc.Server, srv CompanyHandlerServer)
Types ¶
type Company ¶
type Company struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` CompanyName string `protobuf:"bytes,2,opt,name=CompanyName,proto3" json:"CompanyName,omitempty"` Site string `protobuf:"bytes,3,opt,name=Site,proto3" json:"Site,omitempty"` TagLine string `protobuf:"bytes,4,opt,name=TagLine,proto3" json:"TagLine,omitempty"` Description string `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"` Country int64 `protobuf:"varint,6,opt,name=Country,proto3" json:"Country,omitempty"` City int64 `protobuf:"varint,7,opt,name=City,proto3" json:"City,omitempty"` Address string `protobuf:"bytes,8,opt,name=Address,proto3" json:"Address,omitempty"` Phone string `protobuf:"bytes,9,opt,name=Phone,proto3" json:"Phone,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Company) Descriptor ¶
func (*Company) GetAddress ¶
func (*Company) GetCompanyName ¶
func (*Company) GetCountry ¶
func (*Company) GetDescription ¶
func (*Company) GetTagLine ¶
func (*Company) ProtoMessage ¶
func (*Company) ProtoMessage()
func (*Company) XXX_DiscardUnknown ¶
func (m *Company) XXX_DiscardUnknown()
func (*Company) XXX_Marshal ¶
func (*Company) XXX_Unmarshal ¶
type CompanyHandlerClient ¶
type CompanyHandlerClient interface { CreateCompany(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*Company, error) Find(ctx context.Context, in *CompanyID, opts ...grpc.CallOption) (*CompanyOutput, error) Edit(ctx context.Context, in *CompanyWithUser, opts ...grpc.CallOption) (*Nothing, error) }
CompanyHandlerClient is the client API for CompanyHandler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCompanyHandlerClient ¶
func NewCompanyHandlerClient(cc *grpc.ClientConn) CompanyHandlerClient
type CompanyHandlerServer ¶
type CompanyHandlerServer interface { CreateCompany(context.Context, *UserID) (*Company, error) Find(context.Context, *CompanyID) (*CompanyOutput, error) Edit(context.Context, *CompanyWithUser) (*Nothing, error) }
CompanyHandlerServer is the server API for CompanyHandler service.
type CompanyID ¶
type CompanyID struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CompanyID) Descriptor ¶
func (*CompanyID) ProtoMessage ¶
func (*CompanyID) ProtoMessage()
func (*CompanyID) XXX_DiscardUnknown ¶
func (m *CompanyID) XXX_DiscardUnknown()
func (*CompanyID) XXX_Marshal ¶
func (*CompanyID) XXX_Unmarshal ¶
type CompanyOutput ¶
type CompanyOutput struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` CompanyName string `protobuf:"bytes,2,opt,name=CompanyName,proto3" json:"CompanyName,omitempty"` Site string `protobuf:"bytes,3,opt,name=Site,proto3" json:"Site,omitempty"` TagLine string `protobuf:"bytes,4,opt,name=TagLine,proto3" json:"TagLine,omitempty"` Description string `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"` Country string `protobuf:"bytes,6,opt,name=Country,proto3" json:"Country,omitempty"` City string `protobuf:"bytes,7,opt,name=City,proto3" json:"City,omitempty"` Address string `protobuf:"bytes,8,opt,name=Address,proto3" json:"Address,omitempty"` Phone string `protobuf:"bytes,9,opt,name=Phone,proto3" json:"Phone,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CompanyOutput) Descriptor ¶
func (*CompanyOutput) Descriptor() ([]byte, []int)
func (*CompanyOutput) GetAddress ¶
func (m *CompanyOutput) GetAddress() string
func (*CompanyOutput) GetCity ¶
func (m *CompanyOutput) GetCity() string
func (*CompanyOutput) GetCompanyName ¶
func (m *CompanyOutput) GetCompanyName() string
func (*CompanyOutput) GetCountry ¶
func (m *CompanyOutput) GetCountry() string
func (*CompanyOutput) GetDescription ¶
func (m *CompanyOutput) GetDescription() string
func (*CompanyOutput) GetID ¶
func (m *CompanyOutput) GetID() int64
func (*CompanyOutput) GetPhone ¶
func (m *CompanyOutput) GetPhone() string
func (*CompanyOutput) GetSite ¶
func (m *CompanyOutput) GetSite() string
func (*CompanyOutput) GetTagLine ¶
func (m *CompanyOutput) GetTagLine() string
func (*CompanyOutput) ProtoMessage ¶
func (*CompanyOutput) ProtoMessage()
func (*CompanyOutput) Reset ¶
func (m *CompanyOutput) Reset()
func (*CompanyOutput) String ¶
func (m *CompanyOutput) String() string
func (*CompanyOutput) XXX_DiscardUnknown ¶
func (m *CompanyOutput) XXX_DiscardUnknown()
func (*CompanyOutput) XXX_Marshal ¶
func (m *CompanyOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompanyOutput) XXX_Merge ¶
func (m *CompanyOutput) XXX_Merge(src proto.Message)
func (*CompanyOutput) XXX_Size ¶
func (m *CompanyOutput) XXX_Size() int
func (*CompanyOutput) XXX_Unmarshal ¶
func (m *CompanyOutput) XXX_Unmarshal(b []byte) error
type CompanyWithUser ¶
type CompanyWithUser struct { MyCompany *Company `protobuf:"bytes,1,opt,name=MyCompany,proto3" json:"MyCompany,omitempty"` UserID int64 `protobuf:"varint,2,opt,name=UserID,proto3" json:"UserID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CompanyWithUser) Descriptor ¶
func (*CompanyWithUser) Descriptor() ([]byte, []int)
func (*CompanyWithUser) GetMyCompany ¶
func (m *CompanyWithUser) GetMyCompany() *Company
func (*CompanyWithUser) GetUserID ¶
func (m *CompanyWithUser) GetUserID() int64
func (*CompanyWithUser) ProtoMessage ¶
func (*CompanyWithUser) ProtoMessage()
func (*CompanyWithUser) Reset ¶
func (m *CompanyWithUser) Reset()
func (*CompanyWithUser) String ¶
func (m *CompanyWithUser) String() string
func (*CompanyWithUser) XXX_DiscardUnknown ¶
func (m *CompanyWithUser) XXX_DiscardUnknown()
func (*CompanyWithUser) XXX_Marshal ¶
func (m *CompanyWithUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompanyWithUser) XXX_Merge ¶
func (m *CompanyWithUser) XXX_Merge(src proto.Message)
func (*CompanyWithUser) XXX_Size ¶
func (m *CompanyWithUser) XXX_Size() int
func (*CompanyWithUser) XXX_Unmarshal ¶
func (m *CompanyWithUser) XXX_Unmarshal(b []byte) error
type Nothing ¶
type Nothing struct { Dummy bool `protobuf:"varint,1,opt,name=dummy,proto3" json:"dummy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Nothing) Descriptor ¶
func (*Nothing) ProtoMessage ¶
func (*Nothing) ProtoMessage()
func (*Nothing) XXX_DiscardUnknown ¶
func (m *Nothing) XXX_DiscardUnknown()
func (*Nothing) XXX_Marshal ¶
func (*Nothing) XXX_Unmarshal ¶
type UnimplementedCompanyHandlerServer ¶
type UnimplementedCompanyHandlerServer struct { }
UnimplementedCompanyHandlerServer can be embedded to have forward compatible implementations.
func (*UnimplementedCompanyHandlerServer) CreateCompany ¶
func (*UnimplementedCompanyHandlerServer) Edit ¶
func (*UnimplementedCompanyHandlerServer) Edit(ctx context.Context, req *CompanyWithUser) (*Nothing, error)
func (*UnimplementedCompanyHandlerServer) Find ¶
func (*UnimplementedCompanyHandlerServer) Find(ctx context.Context, req *CompanyID) (*CompanyOutput, error)
type UserID ¶
type UserID struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserID) Descriptor ¶
func (*UserID) ProtoMessage ¶
func (*UserID) ProtoMessage()
func (*UserID) XXX_DiscardUnknown ¶
func (m *UserID) XXX_DiscardUnknown()
func (*UserID) XXX_Marshal ¶
func (*UserID) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.