v1

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1 contains the proto definitions for the teams pRPC API.

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Team.ProtoReflect.Descriptor instead.

func (*Team) GetCreateTime

func (x *Team) GetCreateTime() *timestamppb.Timestamp

func (*Team) GetName

func (x *Team) GetName() string

func (*Team) ProtoMessage

func (*Team) ProtoMessage()

func (*Team) ProtoReflect

func (x *Team) ProtoReflect() protoreflect.Message

func (*Team) Reset

func (x *Team) Reset()

func (*Team) String

func (x *Team) String() string

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

Jump to

Keyboard shortcuts

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