Documentation ¶
Overview ¶
Package team is a generated protocol buffer package.
It is generated from these files:
pkg/protobuf/team/team.proto
It has these top-level messages:
CreateRequest AddUserRequest RemoveUserRequest ListResponse RenameRequest Empty
Index ¶
- func RegisterTeamServer(s *grpc.Server, srv TeamServer)
- type AddUserRequest
- type CreateRequest
- type Empty
- type ListResponse
- type ListResponse_Team
- func (*ListResponse_Team) Descriptor() ([]byte, []int)
- func (m *ListResponse_Team) GetEmail() string
- func (m *ListResponse_Team) GetName() string
- func (m *ListResponse_Team) GetUrl() string
- func (m *ListResponse_Team) GetUsers() []*ListResponse_User
- func (*ListResponse_Team) ProtoMessage()
- func (m *ListResponse_Team) Reset()
- func (m *ListResponse_Team) String() string
- type ListResponse_User
- type RemoveUserRequest
- type RenameRequest
- type TeamClient
- type TeamServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTeamServer ¶
func RegisterTeamServer(s *grpc.Server, srv TeamServer)
Types ¶
type AddUserRequest ¶
type AddUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` User string `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` }
func (*AddUserRequest) Descriptor ¶
func (*AddUserRequest) Descriptor() ([]byte, []int)
func (*AddUserRequest) GetName ¶
func (m *AddUserRequest) GetName() string
func (*AddUserRequest) GetUser ¶
func (m *AddUserRequest) GetUser() string
func (*AddUserRequest) ProtoMessage ¶
func (*AddUserRequest) ProtoMessage()
func (*AddUserRequest) Reset ¶
func (m *AddUserRequest) Reset()
func (*AddUserRequest) String ¶
func (m *AddUserRequest) String() string
type CreateRequest ¶
type CreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"` Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetEmail ¶
func (m *CreateRequest) GetEmail() string
func (*CreateRequest) GetName ¶
func (m *CreateRequest) GetName() string
func (*CreateRequest) GetUrl ¶
func (m *CreateRequest) GetUrl() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
type ListResponse ¶
type ListResponse struct {
Teams []*ListResponse_Team `protobuf:"bytes,1,rep,name=teams" json:"teams,omitempty"`
}
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetTeams ¶
func (m *ListResponse) GetTeams() []*ListResponse_Team
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
type ListResponse_Team ¶
type ListResponse_Team struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"` Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` Users []*ListResponse_User `protobuf:"bytes,4,rep,name=users" json:"users,omitempty"` }
func (*ListResponse_Team) Descriptor ¶
func (*ListResponse_Team) Descriptor() ([]byte, []int)
func (*ListResponse_Team) GetEmail ¶
func (m *ListResponse_Team) GetEmail() string
func (*ListResponse_Team) GetName ¶
func (m *ListResponse_Team) GetName() string
func (*ListResponse_Team) GetUrl ¶
func (m *ListResponse_Team) GetUrl() string
func (*ListResponse_Team) GetUsers ¶
func (m *ListResponse_Team) GetUsers() []*ListResponse_User
func (*ListResponse_Team) ProtoMessage ¶
func (*ListResponse_Team) ProtoMessage()
func (*ListResponse_Team) Reset ¶
func (m *ListResponse_Team) Reset()
func (*ListResponse_Team) String ¶
func (m *ListResponse_Team) String() string
type ListResponse_User ¶
type ListResponse_User struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"` }
func (*ListResponse_User) Descriptor ¶
func (*ListResponse_User) Descriptor() ([]byte, []int)
func (*ListResponse_User) GetEmail ¶
func (m *ListResponse_User) GetEmail() string
func (*ListResponse_User) GetName ¶
func (m *ListResponse_User) GetName() string
func (*ListResponse_User) ProtoMessage ¶
func (*ListResponse_User) ProtoMessage()
func (*ListResponse_User) Reset ¶
func (m *ListResponse_User) Reset()
func (*ListResponse_User) String ¶
func (m *ListResponse_User) String() string
type RemoveUserRequest ¶
type RemoveUserRequest struct { Team string `protobuf:"bytes,1,opt,name=team" json:"team,omitempty"` User string `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` }
func (*RemoveUserRequest) Descriptor ¶
func (*RemoveUserRequest) Descriptor() ([]byte, []int)
func (*RemoveUserRequest) GetTeam ¶
func (m *RemoveUserRequest) GetTeam() string
func (*RemoveUserRequest) GetUser ¶
func (m *RemoveUserRequest) GetUser() string
func (*RemoveUserRequest) ProtoMessage ¶
func (*RemoveUserRequest) ProtoMessage()
func (*RemoveUserRequest) Reset ¶
func (m *RemoveUserRequest) Reset()
func (*RemoveUserRequest) String ¶
func (m *RemoveUserRequest) String() string
type RenameRequest ¶
type RenameRequest struct { OldName string `protobuf:"bytes,1,opt,name=oldName" json:"oldName,omitempty"` NewName string `protobuf:"bytes,2,opt,name=newName" json:"newName,omitempty"` }
func (*RenameRequest) Descriptor ¶
func (*RenameRequest) Descriptor() ([]byte, []int)
func (*RenameRequest) GetNewName ¶
func (m *RenameRequest) GetNewName() string
func (*RenameRequest) GetOldName ¶
func (m *RenameRequest) GetOldName() string
func (*RenameRequest) ProtoMessage ¶
func (*RenameRequest) ProtoMessage()
func (*RenameRequest) Reset ¶
func (m *RenameRequest) Reset()
func (*RenameRequest) String ¶
func (m *RenameRequest) String() string
type TeamClient ¶
type TeamClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Empty, error) AddUser(ctx context.Context, in *AddUserRequest, opts ...grpc.CallOption) (*Empty, error) List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListResponse, error) RemoveUser(ctx context.Context, in *RemoveUserRequest, opts ...grpc.CallOption) (*Empty, error) Rename(ctx context.Context, in *RenameRequest, opts ...grpc.CallOption) (*Empty, error) }
func NewTeamClient ¶
func NewTeamClient(cc *grpc.ClientConn) TeamClient
type TeamServer ¶
type TeamServer interface { Create(context.Context, *CreateRequest) (*Empty, error) AddUser(context.Context, *AddUserRequest) (*Empty, error) List(context.Context, *Empty) (*ListResponse, error) RemoveUser(context.Context, *RemoveUserRequest) (*Empty, error) Rename(context.Context, *RenameRequest) (*Empty, error) }
Click to show internal directories.
Click to hide internal directories.