manager_grpc

package
v0.0.0-...-945c817 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Info) GetCompanyID

func (m *Info) GetCompanyID() int64

func (*Info) GetUserID

func (m *Info) GetUserID() int64

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

func (*Info) XXX_DiscardUnknown

func (m *Info) XXX_DiscardUnknown()

func (*Info) XXX_Marshal

func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Info) XXX_Merge

func (m *Info) XXX_Merge(src proto.Message)

func (*Info) XXX_Size

func (m *Info) XXX_Size() int

func (*Info) XXX_Unmarshal

func (m *Info) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Manager) GetAccountId

func (m *Manager) GetAccountId() int64

func (*Manager) GetCompanyId

func (m *Manager) GetCompanyId() int64

func (*Manager) GetID

func (m *Manager) GetID() int64

func (*Manager) GetLocation

func (m *Manager) GetLocation() string

func (*Manager) ProtoMessage

func (*Manager) ProtoMessage()

func (*Manager) Reset

func (m *Manager) Reset()

func (*Manager) String

func (m *Manager) String() string

func (*Manager) XXX_DiscardUnknown

func (m *Manager) XXX_DiscardUnknown()

func (*Manager) XXX_Marshal

func (m *Manager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Manager) XXX_Merge

func (m *Manager) XXX_Merge(src proto.Message)

func (*Manager) XXX_Size

func (m *Manager) XXX_Size() int

func (*Manager) XXX_Unmarshal

func (m *Manager) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ManagerID) GetID

func (m *ManagerID) GetID() int64

func (*ManagerID) ProtoMessage

func (*ManagerID) ProtoMessage()

func (*ManagerID) Reset

func (m *ManagerID) Reset()

func (*ManagerID) String

func (m *ManagerID) String() string

func (*ManagerID) XXX_DiscardUnknown

func (m *ManagerID) XXX_DiscardUnknown()

func (*ManagerID) XXX_Marshal

func (m *ManagerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ManagerID) XXX_Merge

func (m *ManagerID) XXX_Merge(src proto.Message)

func (*ManagerID) XXX_Size

func (m *ManagerID) XXX_Size() int

func (*ManagerID) XXX_Unmarshal

func (m *ManagerID) XXX_Unmarshal(b []byte) error

type UnimplementedManagerHandlerServer

type UnimplementedManagerHandlerServer struct {
}

UnimplementedManagerHandlerServer can be embedded to have forward compatible implementations.

func (*UnimplementedManagerHandlerServer) CreateManager

func (*UnimplementedManagerHandlerServer) CreateManager(ctx context.Context, req *Info) (*Manager, error)

func (*UnimplementedManagerHandlerServer) Find

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) Descriptor() ([]byte, []int)

func (*UserID) GetID

func (m *UserID) GetID() int64

func (*UserID) ProtoMessage

func (*UserID) ProtoMessage()

func (*UserID) Reset

func (m *UserID) Reset()

func (*UserID) String

func (m *UserID) String() string

func (*UserID) XXX_DiscardUnknown

func (m *UserID) XXX_DiscardUnknown()

func (*UserID) XXX_Marshal

func (m *UserID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserID) XXX_Merge

func (m *UserID) XXX_Merge(src proto.Message)

func (*UserID) XXX_Size

func (m *UserID) XXX_Size() int

func (*UserID) XXX_Unmarshal

func (m *UserID) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL