Documentation
¶
Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type GetUserContextReply
- func (*GetUserContextReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserContextReply) GetOrg() *Org
- func (*GetUserContextReply) ProtoMessage()
- func (x *GetUserContextReply) ProtoReflect() protoreflect.Message
- func (x *GetUserContextReply) Reset()
- func (x *GetUserContextReply) String() string
- type GetUserContextRequest
- func (*GetUserContextRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserContextRequest) GetUserId() string
- func (*GetUserContextRequest) ProtoMessage()
- func (x *GetUserContextRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserContextRequest) Reset()
- func (x *GetUserContextRequest) String() string
- type Org
- func (*Org) Descriptor() ([]byte, []int)deprecated
- func (x *Org) GetID() int64
- func (x *Org) GetName() string
- func (x *Org) GetOwnerID() string
- func (x *Org) GetResourceGroups() []*ResourceGroup
- func (*Org) ProtoMessage()
- func (x *Org) ProtoReflect() protoreflect.Message
- func (x *Org) Reset()
- func (x *Org) String() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetCreatedAt() int64
- func (x *Resource) GetId() int64
- func (x *Resource) GetType() string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourceGroup
- func (*ResourceGroup) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceGroup) GetId() int64
- func (x *ResourceGroup) GetName() string
- func (x *ResourceGroup) GetOrgId() int64
- func (x *ResourceGroup) GetResources() []*Resource
- func (*ResourceGroup) ProtoMessage()
- func (x *ResourceGroup) ProtoReflect() protoreflect.Message
- func (x *ResourceGroup) Reset()
- func (x *ResourceGroup) String() string
- type UnimplementedUserServiceServer
- type UnsafeUserServiceServer
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_user_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserContext", Handler: _UserService_GetUserContext_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type GetUserContextReply ¶
type GetUserContextReply struct { // Org stuff Org *Org `protobuf:"bytes,10,opt,name=org,proto3" json:"org,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*GetUserContextReply) Descriptor
deprecated
func (*GetUserContextReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserContextReply.ProtoReflect.Descriptor instead.
func (*GetUserContextReply) GetOrg ¶
func (x *GetUserContextReply) GetOrg() *Org
func (*GetUserContextReply) ProtoMessage ¶
func (*GetUserContextReply) ProtoMessage()
func (*GetUserContextReply) ProtoReflect ¶
func (x *GetUserContextReply) ProtoReflect() protoreflect.Message
func (*GetUserContextReply) Reset ¶
func (x *GetUserContextReply) Reset()
func (*GetUserContextReply) String ¶
func (x *GetUserContextReply) String() string
type GetUserContextRequest ¶
type GetUserContextRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserContextRequest) Descriptor
deprecated
func (*GetUserContextRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserContextRequest.ProtoReflect.Descriptor instead.
func (*GetUserContextRequest) GetUserId ¶
func (x *GetUserContextRequest) GetUserId() string
func (*GetUserContextRequest) ProtoMessage ¶
func (*GetUserContextRequest) ProtoMessage()
func (*GetUserContextRequest) ProtoReflect ¶
func (x *GetUserContextRequest) ProtoReflect() protoreflect.Message
func (*GetUserContextRequest) Reset ¶
func (x *GetUserContextRequest) Reset()
func (*GetUserContextRequest) String ¶
func (x *GetUserContextRequest) String() string
type Org ¶
type Org struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` OwnerID string `protobuf:"bytes,3,opt,name=OwnerID,proto3" json:"OwnerID,omitempty"` ResourceGroups []*ResourceGroup `protobuf:"bytes,4,rep,name=resourceGroups,proto3" json:"resourceGroups,omitempty"` // contains filtered or unexported fields }
func (*Org) Descriptor
deprecated
func (*Org) GetOwnerID ¶
func (*Org) GetResourceGroups ¶
func (x *Org) GetResourceGroups() []*ResourceGroup
func (*Org) ProtoMessage ¶
func (*Org) ProtoMessage()
func (*Org) ProtoReflect ¶
func (x *Org) ProtoReflect() protoreflect.Message
type Resource ¶
type Resource struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) GetCreatedAt ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceGroup ¶
type ResourceGroup struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OrgId int64 `protobuf:"varint,2,opt,name=orgId,proto3" json:"orgId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Resources []*Resource `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"` // contains filtered or unexported fields }
func (*ResourceGroup) Descriptor
deprecated
func (*ResourceGroup) Descriptor() ([]byte, []int)
Deprecated: Use ResourceGroup.ProtoReflect.Descriptor instead.
func (*ResourceGroup) GetId ¶
func (x *ResourceGroup) GetId() int64
func (*ResourceGroup) GetName ¶
func (x *ResourceGroup) GetName() string
func (*ResourceGroup) GetOrgId ¶
func (x *ResourceGroup) GetOrgId() int64
func (*ResourceGroup) GetResources ¶
func (x *ResourceGroup) GetResources() []*Resource
func (*ResourceGroup) ProtoMessage ¶
func (*ResourceGroup) ProtoMessage()
func (*ResourceGroup) ProtoReflect ¶
func (x *ResourceGroup) ProtoReflect() protoreflect.Message
func (*ResourceGroup) Reset ¶
func (x *ResourceGroup) Reset()
func (*ResourceGroup) String ¶
func (x *ResourceGroup) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) GetUserContext ¶
func (UnimplementedUserServiceServer) GetUserContext(context.Context, *GetUserContextRequest) (*GetUserContextReply, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UserServiceClient ¶
type UserServiceClient interface { // Sends a greeting GetUserContext(ctx context.Context, in *GetUserContextRequest, opts ...grpc.CallOption) (*GetUserContextReply, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { // Sends a greeting GetUserContext(context.Context, *GetUserContextRequest) (*GetUserContextReply, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility