Documentation ¶
Index ¶
- func RegisterManagerHandlerServer(s *grpc.Server, srv ManagerHandlerServer)
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetCompanyID() int64
- func (m *Info) GetUserID() int64
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) String() string
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type Manager
- func (*Manager) Descriptor() ([]byte, []int)
- func (m *Manager) GetAccountId() int64
- func (m *Manager) GetCompanyId() int64
- func (m *Manager) GetID() int64
- func (m *Manager) GetLocation() string
- func (*Manager) ProtoMessage()
- func (m *Manager) Reset()
- func (m *Manager) String() string
- func (m *Manager) XXX_DiscardUnknown()
- func (m *Manager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Manager) XXX_Merge(src proto.Message)
- func (m *Manager) XXX_Size() int
- func (m *Manager) XXX_Unmarshal(b []byte) error
- type ManagerHandlerClient
- type ManagerHandlerServer
- type ManagerID
- func (*ManagerID) Descriptor() ([]byte, []int)
- func (m *ManagerID) GetID() int64
- func (*ManagerID) ProtoMessage()
- func (m *ManagerID) Reset()
- func (m *ManagerID) String() string
- func (m *ManagerID) XXX_DiscardUnknown()
- func (m *ManagerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManagerID) XXX_Merge(src proto.Message)
- func (m *ManagerID) XXX_Size() int
- func (m *ManagerID) XXX_Unmarshal(b []byte) error
- type UnimplementedManagerHandlerServer
- func (*UnimplementedManagerHandlerServer) CreateManager(ctx context.Context, req *Info) (*Manager, error)
- func (*UnimplementedManagerHandlerServer) Find(ctx context.Context, req *ManagerID) (*Manager, error)
- func (*UnimplementedManagerHandlerServer) FindByUser(ctx context.Context, req *UserID) (*Manager, 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 RegisterManagerHandlerServer ¶
func RegisterManagerHandlerServer(s *grpc.Server, srv ManagerHandlerServer)
Types ¶
type Info ¶
type Info struct { UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"` CompanyID int64 `protobuf:"varint,2,opt,name=CompanyID,proto3" json:"CompanyID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Info) Descriptor ¶
func (*Info) GetCompanyID ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) XXX_DiscardUnknown ¶
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Unmarshal ¶
type Manager ¶
type Manager struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` AccountId int64 `protobuf:"varint,2,opt,name=AccountId,proto3" json:"AccountId,omitempty"` Location string `protobuf:"bytes,3,opt,name=Location,proto3" json:"Location,omitempty"` CompanyId int64 `protobuf:"varint,4,opt,name=CompanyId,proto3" json:"CompanyId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Manager) Descriptor ¶
func (*Manager) GetAccountId ¶
func (*Manager) GetCompanyId ¶
func (*Manager) GetLocation ¶
func (*Manager) ProtoMessage ¶
func (*Manager) ProtoMessage()
func (*Manager) XXX_DiscardUnknown ¶
func (m *Manager) XXX_DiscardUnknown()
func (*Manager) XXX_Marshal ¶
func (*Manager) XXX_Unmarshal ¶
type ManagerHandlerClient ¶
type ManagerHandlerClient interface { CreateManager(ctx context.Context, in *Info, opts ...grpc.CallOption) (*Manager, error) FindByUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*Manager, error) Find(ctx context.Context, in *ManagerID, opts ...grpc.CallOption) (*Manager, error) }
ManagerHandlerClient is the client API for ManagerHandler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewManagerHandlerClient ¶
func NewManagerHandlerClient(cc *grpc.ClientConn) ManagerHandlerClient
type ManagerHandlerServer ¶
type ManagerHandlerServer interface { CreateManager(context.Context, *Info) (*Manager, error) FindByUser(context.Context, *UserID) (*Manager, error) Find(context.Context, *ManagerID) (*Manager, error) }
ManagerHandlerServer is the server API for ManagerHandler service.
type ManagerID ¶
type ManagerID 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 (*ManagerID) Descriptor ¶
func (*ManagerID) ProtoMessage ¶
func (*ManagerID) ProtoMessage()
func (*ManagerID) XXX_DiscardUnknown ¶
func (m *ManagerID) XXX_DiscardUnknown()
func (*ManagerID) XXX_Marshal ¶
func (*ManagerID) XXX_Unmarshal ¶
type UnimplementedManagerHandlerServer ¶
type UnimplementedManagerHandlerServer struct { }
UnimplementedManagerHandlerServer can be embedded to have forward compatible implementations.
func (*UnimplementedManagerHandlerServer) CreateManager ¶
func (*UnimplementedManagerHandlerServer) FindByUser ¶
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.