user

package
v0.0.0-...-87773b3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_user_user_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Org.ProtoReflect.Descriptor instead.

func (*Org) GetID

func (x *Org) GetID() int64

func (*Org) GetName

func (x *Org) GetName() string

func (*Org) GetOwnerID

func (x *Org) GetOwnerID() string

func (*Org) GetResourceGroups

func (x *Org) GetResourceGroups() []*ResourceGroup

func (*Org) ProtoMessage

func (*Org) ProtoMessage()

func (*Org) ProtoReflect

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

func (*Org) Reset

func (x *Org) Reset()

func (*Org) String

func (x *Org) String() string

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetCreatedAt

func (x *Resource) GetCreatedAt() int64

func (*Resource) GetId

func (x *Resource) GetId() int64

func (*Resource) GetType

func (x *Resource) GetType() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

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

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.

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

Jump to

Keyboard shortcuts

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