usersService

package
v0.0.0-...-7ee3c9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUsersServiceServer

func RegisterUsersServiceServer(s *grpc.Server, srv UsersServiceServer)

Types

type GetUsersSearchRequest

type GetUsersSearchRequest struct {
	Message              string   `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	MaxResults           int32    `protobuf:"varint,2,opt,name=MaxResults,proto3" json:"MaxResults,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUsersSearchRequest) Descriptor

func (*GetUsersSearchRequest) Descriptor() ([]byte, []int)

func (*GetUsersSearchRequest) GetMaxResults

func (m *GetUsersSearchRequest) GetMaxResults() int32

func (*GetUsersSearchRequest) GetMessage

func (m *GetUsersSearchRequest) GetMessage() string

func (*GetUsersSearchRequest) ProtoMessage

func (*GetUsersSearchRequest) ProtoMessage()

func (*GetUsersSearchRequest) Reset

func (m *GetUsersSearchRequest) Reset()

func (*GetUsersSearchRequest) String

func (m *GetUsersSearchRequest) String() string

func (*GetUsersSearchRequest) XXX_DiscardUnknown

func (m *GetUsersSearchRequest) XXX_DiscardUnknown()

func (*GetUsersSearchRequest) XXX_Marshal

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

func (*GetUsersSearchRequest) XXX_Merge

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

func (*GetUsersSearchRequest) XXX_Size

func (m *GetUsersSearchRequest) XXX_Size() int

func (*GetUsersSearchRequest) XXX_Unmarshal

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

type GroupResponse

type GroupResponse struct {
	Groups               []*group.Group `protobuf:"bytes,1,rep,name=Groups,proto3" json:"Groups,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*GroupResponse) Descriptor

func (*GroupResponse) Descriptor() ([]byte, []int)

func (*GroupResponse) GetGroups

func (m *GroupResponse) GetGroups() []*group.Group

func (*GroupResponse) ProtoMessage

func (*GroupResponse) ProtoMessage()

func (*GroupResponse) Reset

func (m *GroupResponse) Reset()

func (*GroupResponse) String

func (m *GroupResponse) String() string

func (*GroupResponse) XXX_DiscardUnknown

func (m *GroupResponse) XXX_DiscardUnknown()

func (*GroupResponse) XXX_Marshal

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

func (*GroupResponse) XXX_Merge

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

func (*GroupResponse) XXX_Size

func (m *GroupResponse) XXX_Size() int

func (*GroupResponse) XXX_Unmarshal

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

type InvestorUserResponse

type InvestorUserResponse struct {
	Users                []*investor_user.InvestorUser `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

func (*InvestorUserResponse) Descriptor

func (*InvestorUserResponse) Descriptor() ([]byte, []int)

func (*InvestorUserResponse) GetUsers

func (*InvestorUserResponse) ProtoMessage

func (*InvestorUserResponse) ProtoMessage()

func (*InvestorUserResponse) Reset

func (m *InvestorUserResponse) Reset()

func (*InvestorUserResponse) String

func (m *InvestorUserResponse) String() string

func (*InvestorUserResponse) XXX_DiscardUnknown

func (m *InvestorUserResponse) XXX_DiscardUnknown()

func (*InvestorUserResponse) XXX_Marshal

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

func (*InvestorUserResponse) XXX_Merge

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

func (*InvestorUserResponse) XXX_Size

func (m *InvestorUserResponse) XXX_Size() int

func (*InvestorUserResponse) XXX_Unmarshal

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

type StartupUserResponse

type StartupUserResponse struct {
	Users                []*startup_user.StartupUser `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*StartupUserResponse) Descriptor

func (*StartupUserResponse) Descriptor() ([]byte, []int)

func (*StartupUserResponse) GetUsers

func (m *StartupUserResponse) GetUsers() []*startup_user.StartupUser

func (*StartupUserResponse) ProtoMessage

func (*StartupUserResponse) ProtoMessage()

func (*StartupUserResponse) Reset

func (m *StartupUserResponse) Reset()

func (*StartupUserResponse) String

func (m *StartupUserResponse) String() string

func (*StartupUserResponse) XXX_DiscardUnknown

func (m *StartupUserResponse) XXX_DiscardUnknown()

func (*StartupUserResponse) XXX_Marshal

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

func (*StartupUserResponse) XXX_Merge

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

func (*StartupUserResponse) XXX_Size

func (m *StartupUserResponse) XXX_Size() int

func (*StartupUserResponse) XXX_Unmarshal

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

type StringTypeRequest

type StringTypeRequest struct {
	Message              string   `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StringTypeRequest) Descriptor

func (*StringTypeRequest) Descriptor() ([]byte, []int)

func (*StringTypeRequest) GetMessage

func (m *StringTypeRequest) GetMessage() string

func (*StringTypeRequest) ProtoMessage

func (*StringTypeRequest) ProtoMessage()

func (*StringTypeRequest) Reset

func (m *StringTypeRequest) Reset()

func (*StringTypeRequest) String

func (m *StringTypeRequest) String() string

func (*StringTypeRequest) XXX_DiscardUnknown

func (m *StringTypeRequest) XXX_DiscardUnknown()

func (*StringTypeRequest) XXX_Marshal

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

func (*StringTypeRequest) XXX_Merge

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

func (*StringTypeRequest) XXX_Size

func (m *StringTypeRequest) XXX_Size() int

func (*StringTypeRequest) XXX_Unmarshal

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

type TeamResponse

type TeamResponse struct {
	Teams                []*team.Team `protobuf:"bytes,1,rep,name=Teams,proto3" json:"Teams,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*TeamResponse) Descriptor

func (*TeamResponse) Descriptor() ([]byte, []int)

func (*TeamResponse) GetTeams

func (m *TeamResponse) GetTeams() []*team.Team

func (*TeamResponse) ProtoMessage

func (*TeamResponse) ProtoMessage()

func (*TeamResponse) Reset

func (m *TeamResponse) Reset()

func (*TeamResponse) String

func (m *TeamResponse) String() string

func (*TeamResponse) XXX_DiscardUnknown

func (m *TeamResponse) XXX_DiscardUnknown()

func (*TeamResponse) XXX_Marshal

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

func (*TeamResponse) XXX_Merge

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

func (*TeamResponse) XXX_Size

func (m *TeamResponse) XXX_Size() int

func (*TeamResponse) XXX_Unmarshal

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

type Uint32TypeRequest

type Uint32TypeRequest struct {
	Id                   uint32   `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Uint32TypeRequest) Descriptor

func (*Uint32TypeRequest) Descriptor() ([]byte, []int)

func (*Uint32TypeRequest) GetId

func (m *Uint32TypeRequest) GetId() uint32

func (*Uint32TypeRequest) ProtoMessage

func (*Uint32TypeRequest) ProtoMessage()

func (*Uint32TypeRequest) Reset

func (m *Uint32TypeRequest) Reset()

func (*Uint32TypeRequest) String

func (m *Uint32TypeRequest) String() string

func (*Uint32TypeRequest) XXX_DiscardUnknown

func (m *Uint32TypeRequest) XXX_DiscardUnknown()

func (*Uint32TypeRequest) XXX_Marshal

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

func (*Uint32TypeRequest) XXX_Merge

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

func (*Uint32TypeRequest) XXX_Size

func (m *Uint32TypeRequest) XXX_Size() int

func (*Uint32TypeRequest) XXX_Unmarshal

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

type UnimplementedUsersServiceServer

type UnimplementedUsersServiceServer struct {
}

UnimplementedUsersServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUsersServiceServer) CreateGroup

func (*UnimplementedUsersServiceServer) CreateInvestorUser

func (*UnimplementedUsersServiceServer) CreateStartupUser

func (*UnimplementedUsersServiceServer) CreateTeam

func (*UnimplementedUsersServiceServer) CreateUser

func (*UnimplementedUsersServiceServer) DeleteGroup

func (*UnimplementedUsersServiceServer) DeleteInvestorUser

func (*UnimplementedUsersServiceServer) DeleteProfile

func (*UnimplementedUsersServiceServer) DeleteStartupUser

func (*UnimplementedUsersServiceServer) DeleteTeam

func (*UnimplementedUsersServiceServer) DeleteUser

func (*UnimplementedUsersServiceServer) GetGroupById

func (*UnimplementedUsersServiceServer) GetGroupByName

func (*UnimplementedUsersServiceServer) GetGroupsByType

func (*UnimplementedUsersServiceServer) GetInvestorUserByID

func (*UnimplementedUsersServiceServer) GetStartupUserByID

func (*UnimplementedUsersServiceServer) GetTeamByEmail

func (*UnimplementedUsersServiceServer) GetTeamById

func (*UnimplementedUsersServiceServer) GetTeamByName

func (*UnimplementedUsersServiceServer) GetTeamsByIndustry

func (*UnimplementedUsersServiceServer) GetTeamsByType

func (*UnimplementedUsersServiceServer) GetUserByEmail

func (*UnimplementedUsersServiceServer) GetUserByID

func (*UnimplementedUsersServiceServer) GetUserByUsername

func (*UnimplementedUsersServiceServer) GetUsersByType

func (*UnimplementedUsersServiceServer) UpdateGroup

func (*UnimplementedUsersServiceServer) UpdateInvestorUser

func (*UnimplementedUsersServiceServer) UpdateStartupUser

func (*UnimplementedUsersServiceServer) UpdateTeam

func (*UnimplementedUsersServiceServer) UpdateUser

type UpdateOrCreateEntityResponse

type UpdateOrCreateEntityResponse struct {
	Successful           bool     `protobuf:"varint,1,opt,name=Successful,proto3" json:"Successful,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateOrCreateEntityResponse) Descriptor

func (*UpdateOrCreateEntityResponse) Descriptor() ([]byte, []int)

func (*UpdateOrCreateEntityResponse) GetSuccessful

func (m *UpdateOrCreateEntityResponse) GetSuccessful() bool

func (*UpdateOrCreateEntityResponse) ProtoMessage

func (*UpdateOrCreateEntityResponse) ProtoMessage()

func (*UpdateOrCreateEntityResponse) Reset

func (m *UpdateOrCreateEntityResponse) Reset()

func (*UpdateOrCreateEntityResponse) String

func (*UpdateOrCreateEntityResponse) XXX_DiscardUnknown

func (m *UpdateOrCreateEntityResponse) XXX_DiscardUnknown()

func (*UpdateOrCreateEntityResponse) XXX_Marshal

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

func (*UpdateOrCreateEntityResponse) XXX_Merge

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

func (*UpdateOrCreateEntityResponse) XXX_Size

func (m *UpdateOrCreateEntityResponse) XXX_Size() int

func (*UpdateOrCreateEntityResponse) XXX_Unmarshal

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

type UserResponse

type UserResponse struct {
	Users                []*user.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*UserResponse) Descriptor

func (*UserResponse) Descriptor() ([]byte, []int)

func (*UserResponse) GetUsers

func (m *UserResponse) GetUsers() []*user.User

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) Reset

func (m *UserResponse) Reset()

func (*UserResponse) String

func (m *UserResponse) String() string

func (*UserResponse) XXX_DiscardUnknown

func (m *UserResponse) XXX_DiscardUnknown()

func (*UserResponse) XXX_Marshal

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

func (*UserResponse) XXX_Merge

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

func (*UserResponse) XXX_Size

func (m *UserResponse) XXX_Size() int

func (*UserResponse) XXX_Unmarshal

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

type UsersServiceClient

type UsersServiceClient interface {
	// Define Get, Update, Create, Delete requests for all user types
	GetUserByID(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*UserResponse, error)
	GetUserByUsername(ctx context.Context, in *StringTypeRequest, opts ...grpc.CallOption) (*UserResponse, error)
	GetUserByEmail(ctx context.Context, in *StringTypeRequest, opts ...grpc.CallOption) (*UserResponse, error)
	GetUsersByType(ctx context.Context, in *GetUsersSearchRequest, opts ...grpc.CallOption) (*UserResponse, error)
	GetStartupUserByID(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*StartupUserResponse, error)
	GetInvestorUserByID(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*InvestorUserResponse, error)
	CreateUser(ctx context.Context, in *user.User, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	CreateStartupUser(ctx context.Context, in *startup_user.StartupUser, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	CreateInvestorUser(ctx context.Context, in *investor_user.InvestorUser, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	UpdateUser(ctx context.Context, in *user.User, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	UpdateStartupUser(ctx context.Context, in *startup_user.StartupUser, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	UpdateInvestorUser(ctx context.Context, in *investor_user.InvestorUser, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	DeleteUser(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	DeleteStartupUser(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	DeleteInvestorUser(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	DeleteProfile(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	// Define Get, Update, Create, Delete requests for all team types
	CreateTeam(ctx context.Context, in *team.Team, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	UpdateTeam(ctx context.Context, in *team.Team, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	DeleteTeam(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	GetTeamById(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*team.Team, error)
	GetTeamByName(ctx context.Context, in *StringTypeRequest, opts ...grpc.CallOption) (*team.Team, error)
	GetTeamByEmail(ctx context.Context, in *StringTypeRequest, opts ...grpc.CallOption) (*team.Team, error)
	GetTeamsByType(ctx context.Context, in *StringTypeRequest, opts ...grpc.CallOption) (*team.Team, error)
	GetTeamsByIndustry(ctx context.Context, in *StringTypeRequest, opts ...grpc.CallOption) (*TeamResponse, error)
	// Define Get, Update, Create, Delete requests for all group types
	CreateGroup(ctx context.Context, in *group.Group, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	GetGroupById(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*GroupResponse, error)
	GetGroupByName(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*GroupResponse, error)
	GetGroupsByType(ctx context.Context, in *StringTypeRequest, opts ...grpc.CallOption) (*GroupResponse, error)
	UpdateGroup(ctx context.Context, in *group.Group, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
	DeleteGroup(ctx context.Context, in *Uint32TypeRequest, opts ...grpc.CallOption) (*UpdateOrCreateEntityResponse, error)
}

UsersServiceClient is the client API for UsersService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUsersServiceClient

func NewUsersServiceClient(cc *grpc.ClientConn) UsersServiceClient

type UsersServiceServer

type UsersServiceServer interface {
	// Define Get, Update, Create, Delete requests for all user types
	GetUserByID(context.Context, *Uint32TypeRequest) (*UserResponse, error)
	GetUserByUsername(context.Context, *StringTypeRequest) (*UserResponse, error)
	GetUserByEmail(context.Context, *StringTypeRequest) (*UserResponse, error)
	GetUsersByType(context.Context, *GetUsersSearchRequest) (*UserResponse, error)
	GetStartupUserByID(context.Context, *Uint32TypeRequest) (*StartupUserResponse, error)
	GetInvestorUserByID(context.Context, *Uint32TypeRequest) (*InvestorUserResponse, error)
	CreateUser(context.Context, *user.User) (*UpdateOrCreateEntityResponse, error)
	CreateStartupUser(context.Context, *startup_user.StartupUser) (*UpdateOrCreateEntityResponse, error)
	CreateInvestorUser(context.Context, *investor_user.InvestorUser) (*UpdateOrCreateEntityResponse, error)
	UpdateUser(context.Context, *user.User) (*UpdateOrCreateEntityResponse, error)
	UpdateStartupUser(context.Context, *startup_user.StartupUser) (*UpdateOrCreateEntityResponse, error)
	UpdateInvestorUser(context.Context, *investor_user.InvestorUser) (*UpdateOrCreateEntityResponse, error)
	DeleteUser(context.Context, *Uint32TypeRequest) (*UpdateOrCreateEntityResponse, error)
	DeleteStartupUser(context.Context, *Uint32TypeRequest) (*UpdateOrCreateEntityResponse, error)
	DeleteInvestorUser(context.Context, *Uint32TypeRequest) (*UpdateOrCreateEntityResponse, error)
	DeleteProfile(context.Context, *Uint32TypeRequest) (*UpdateOrCreateEntityResponse, error)
	// Define Get, Update, Create, Delete requests for all team types
	CreateTeam(context.Context, *team.Team) (*UpdateOrCreateEntityResponse, error)
	UpdateTeam(context.Context, *team.Team) (*UpdateOrCreateEntityResponse, error)
	DeleteTeam(context.Context, *Uint32TypeRequest) (*UpdateOrCreateEntityResponse, error)
	GetTeamById(context.Context, *Uint32TypeRequest) (*team.Team, error)
	GetTeamByName(context.Context, *StringTypeRequest) (*team.Team, error)
	GetTeamByEmail(context.Context, *StringTypeRequest) (*team.Team, error)
	GetTeamsByType(context.Context, *StringTypeRequest) (*team.Team, error)
	GetTeamsByIndustry(context.Context, *StringTypeRequest) (*TeamResponse, error)
	// Define Get, Update, Create, Delete requests for all group types
	CreateGroup(context.Context, *group.Group) (*UpdateOrCreateEntityResponse, error)
	GetGroupById(context.Context, *Uint32TypeRequest) (*GroupResponse, error)
	GetGroupByName(context.Context, *Uint32TypeRequest) (*GroupResponse, error)
	GetGroupsByType(context.Context, *StringTypeRequest) (*GroupResponse, error)
	UpdateGroup(context.Context, *group.Group) (*UpdateOrCreateEntityResponse, error)
	DeleteGroup(context.Context, *Uint32TypeRequest) (*UpdateOrCreateEntityResponse, error)
}

UsersServiceServer is the server API for UsersService service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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