Documentation ¶
Overview ¶
Package v1 contains the proto definitions for the teams pRPC API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_go_chromium_org_luci_teams_proto_v1_teams_proto protoreflect.FileDescriptor
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet() *descriptorpb.FileDescriptorSet
FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.
Will not return nil.
Do NOT modify the returned descriptor.
func RegisterTeamsServer ¶
func RegisterTeamsServer(s prpc.Registrar, srv TeamsServer)
Types ¶
type DecoratedTeams ¶
type DecoratedTeams struct { // Service is the service to decorate. Service TeamsServer // Prelude is called for each method before forwarding the call to Service. // If Prelude returns an error, then the call is skipped and the error is // processed via the Postlude (if one is defined), or it is returned directly. Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error) // Postlude is called for each method after Service has processed the call, or // after the Prelude has returned an error. This takes the Service's // response proto (which may be nil) and/or any error. The decorated // service will return the response (possibly mutated) and error that Postlude // returns. Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error }
func (*DecoratedTeams) Get ¶
func (s *DecoratedTeams) Get(ctx context.Context, req *GetTeamRequest) (rsp *Team, err error)
type GetTeamRequest ¶
type GetTeamRequest struct { // The resource name of the team to get. // // You can use 'my' as the id to get the team for the current user // i.e. set the name to 'teams/my'. // // Format: teams/{id} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetTeamRequest) Descriptor
deprecated
func (*GetTeamRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTeamRequest.ProtoReflect.Descriptor instead.
func (*GetTeamRequest) GetName ¶
func (x *GetTeamRequest) GetName() string
func (*GetTeamRequest) ProtoMessage ¶
func (*GetTeamRequest) ProtoMessage()
func (*GetTeamRequest) ProtoReflect ¶
func (x *GetTeamRequest) ProtoReflect() protoreflect.Message
func (*GetTeamRequest) Reset ¶
func (x *GetTeamRequest) Reset()
func (*GetTeamRequest) String ¶
func (x *GetTeamRequest) String() string
type Team ¶
type Team struct { // The name of this team. // Format: team/{id} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The time the team was made. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
Represents a team resource.
func (*Team) Descriptor
deprecated
func (*Team) GetCreateTime ¶
func (x *Team) GetCreateTime() *timestamppb.Timestamp
func (*Team) ProtoMessage ¶
func (*Team) ProtoMessage()
func (*Team) ProtoReflect ¶
func (x *Team) ProtoReflect() protoreflect.Message
type TeamsClient ¶
type TeamsClient interface { // Get a team. // Use the resource alias 'my' to get just the current user's team. Get(ctx context.Context, in *GetTeamRequest, opts ...grpc.CallOption) (*Team, error) }
TeamsClient is the client API for Teams service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTeamsClient ¶
func NewTeamsClient(cc grpc.ClientConnInterface) TeamsClient
func NewTeamsPRPCClient ¶
func NewTeamsPRPCClient(client *prpc.Client) TeamsClient
type TeamsServer ¶
type TeamsServer interface { // Get a team. // Use the resource alias 'my' to get just the current user's team. Get(context.Context, *GetTeamRequest) (*Team, error) }
TeamsServer is the server API for Teams service.
type UnimplementedTeamsServer ¶
type UnimplementedTeamsServer struct { }
UnimplementedTeamsServer can be embedded to have forward compatible implementations.
func (*UnimplementedTeamsServer) Get ¶
func (*UnimplementedTeamsServer) Get(context.Context, *GetTeamRequest) (*Team, error)