user

package
Version: v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type Data

type Data struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Data) Descriptor

func (*Data) Descriptor() ([]byte, []int)

func (*Data) GetKey

func (m *Data) GetKey() string

func (*Data) GetValue

func (m *Data) GetValue() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) String

func (m *Data) String() string

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Data) XXX_Merge

func (m *Data) XXX_Merge(src proto.Message)

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

func (m *Data) XXX_Unmarshal(b []byte) error

type GetUserRequest

type GetUserRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Deprecated: Do not use.
	EnvironmentNamespace string   `protobuf:"bytes,2,opt,name=environment_namespace,json=environmentNamespace,proto3" json:"environment_namespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserRequest) Descriptor

func (*GetUserRequest) Descriptor() ([]byte, []int)

func (*GetUserRequest) GetEnvironmentNamespace

func (m *GetUserRequest) GetEnvironmentNamespace() string

func (*GetUserRequest) GetUserId deprecated

func (m *GetUserRequest) GetUserId() string

Deprecated: Do not use.

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset

func (m *GetUserRequest) Reset()

func (*GetUserRequest) String

func (m *GetUserRequest) String() string

func (*GetUserRequest) XXX_DiscardUnknown

func (m *GetUserRequest) XXX_DiscardUnknown()

func (*GetUserRequest) XXX_Marshal

func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserRequest) XXX_Merge

func (m *GetUserRequest) XXX_Merge(src proto.Message)

func (*GetUserRequest) XXX_Size

func (m *GetUserRequest) XXX_Size() int

func (*GetUserRequest) XXX_Unmarshal

func (m *GetUserRequest) XXX_Unmarshal(b []byte) error

type GetUserResponse

type GetUserResponse struct {
	User                 *User       `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	UserEntity           *UserEntity `protobuf:"bytes,2,opt,name=user_entity,json=userEntity,proto3" json:"user_entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetUserResponse) Descriptor

func (*GetUserResponse) Descriptor() ([]byte, []int)

func (*GetUserResponse) GetUser

func (m *GetUserResponse) GetUser() *User

func (*GetUserResponse) GetUserEntity

func (m *GetUserResponse) GetUserEntity() *UserEntity

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) Reset

func (m *GetUserResponse) Reset()

func (*GetUserResponse) String

func (m *GetUserResponse) String() string

func (*GetUserResponse) XXX_DiscardUnknown

func (m *GetUserResponse) XXX_DiscardUnknown()

func (*GetUserResponse) XXX_Marshal

func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserResponse) XXX_Merge

func (m *GetUserResponse) XXX_Merge(src proto.Message)

func (*GetUserResponse) XXX_Size

func (m *GetUserResponse) XXX_Size() int

func (*GetUserResponse) XXX_Unmarshal

func (m *GetUserResponse) XXX_Unmarshal(b []byte) error

type ListUsersRequest

type ListUsersRequest struct {
	PageSize             int64    `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Cursor               string   `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	EnvironmentNamespace string   `protobuf:"bytes,3,opt,name=environment_namespace,json=environmentNamespace,proto3" json:"environment_namespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListUsersRequest) Descriptor

func (*ListUsersRequest) Descriptor() ([]byte, []int)

func (*ListUsersRequest) GetCursor

func (m *ListUsersRequest) GetCursor() string

func (*ListUsersRequest) GetEnvironmentNamespace

func (m *ListUsersRequest) GetEnvironmentNamespace() string

func (*ListUsersRequest) GetPageSize

func (m *ListUsersRequest) GetPageSize() int64

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) Reset

func (m *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (m *ListUsersRequest) String() string

func (*ListUsersRequest) XXX_DiscardUnknown

func (m *ListUsersRequest) XXX_DiscardUnknown()

func (*ListUsersRequest) XXX_Marshal

func (m *ListUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUsersRequest) XXX_Merge

func (m *ListUsersRequest) XXX_Merge(src proto.Message)

func (*ListUsersRequest) XXX_Size

func (m *ListUsersRequest) XXX_Size() int

func (*ListUsersRequest) XXX_Unmarshal

func (m *ListUsersRequest) XXX_Unmarshal(b []byte) error

type ListUsersResponse

type ListUsersResponse struct {
	Users                []*User       `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // Deprecated: Do not use.
	Cursor               string        `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	UserEntities         []*UserEntity `protobuf:"bytes,3,rep,name=user_entities,json=userEntities,proto3" json:"user_entities,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ListUsersResponse) Descriptor

func (*ListUsersResponse) Descriptor() ([]byte, []int)

func (*ListUsersResponse) GetCursor

func (m *ListUsersResponse) GetCursor() string

func (*ListUsersResponse) GetUserEntities

func (m *ListUsersResponse) GetUserEntities() []*UserEntity

func (*ListUsersResponse) GetUsers deprecated

func (m *ListUsersResponse) GetUsers() []*User

Deprecated: Do not use.

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) Reset

func (m *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (m *ListUsersResponse) String() string

func (*ListUsersResponse) XXX_DiscardUnknown

func (m *ListUsersResponse) XXX_DiscardUnknown()

func (*ListUsersResponse) XXX_Marshal

func (m *ListUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUsersResponse) XXX_Merge

func (m *ListUsersResponse) XXX_Merge(src proto.Message)

func (*ListUsersResponse) XXX_Size

func (m *ListUsersResponse) XXX_Size() int

func (*ListUsersResponse) XXX_Unmarshal

func (m *ListUsersResponse) XXX_Unmarshal(b []byte) error

type TaggedData

type TaggedData struct {
	Tag                  string   `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	Data                 []*Data  `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TaggedData) Descriptor

func (*TaggedData) Descriptor() ([]byte, []int)

func (*TaggedData) GetData

func (m *TaggedData) GetData() []*Data

func (*TaggedData) GetTag

func (m *TaggedData) GetTag() string

func (*TaggedData) ProtoMessage

func (*TaggedData) ProtoMessage()

func (*TaggedData) Reset

func (m *TaggedData) Reset()

func (*TaggedData) String

func (m *TaggedData) String() string

func (*TaggedData) XXX_DiscardUnknown

func (m *TaggedData) XXX_DiscardUnknown()

func (*TaggedData) XXX_Marshal

func (m *TaggedData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaggedData) XXX_Merge

func (m *TaggedData) XXX_Merge(src proto.Message)

func (*TaggedData) XXX_Size

func (m *TaggedData) XXX_Size() int

func (*TaggedData) XXX_Unmarshal

func (m *TaggedData) XXX_Unmarshal(b []byte) error

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) GetUser

func (*UnimplementedUserServiceServer) ListUsers

type User

type User struct {
	Id                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data                 map[string]string ``                                                                                       /* 149-byte string literal not displayed */
	LastSeen             int64             `protobuf:"varint,3,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` // Deprecated: Do not use.
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*User) Descriptor

func (*User) Descriptor() ([]byte, []int)

func (*User) GetData

func (m *User) GetData() map[string]string

func (*User) GetId

func (m *User) GetId() string

func (*User) GetLastSeen deprecated

func (m *User) GetLastSeen() int64

Deprecated: Do not use.

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type UserEntity

type UserEntity struct {
	Id                   string        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data                 []*Data       `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // Deprecated: Do not use.
	LastSeen             int64         `protobuf:"varint,3,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	TaggedData           []*TaggedData `protobuf:"bytes,4,rep,name=tagged_data,json=taggedData,proto3" json:"tagged_data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*UserEntity) Descriptor

func (*UserEntity) Descriptor() ([]byte, []int)

func (*UserEntity) GetData deprecated

func (m *UserEntity) GetData() []*Data

Deprecated: Do not use.

func (*UserEntity) GetId

func (m *UserEntity) GetId() string

func (*UserEntity) GetLastSeen

func (m *UserEntity) GetLastSeen() int64

func (*UserEntity) GetTaggedData

func (m *UserEntity) GetTaggedData() []*TaggedData

func (*UserEntity) ProtoMessage

func (*UserEntity) ProtoMessage()

func (*UserEntity) Reset

func (m *UserEntity) Reset()

func (*UserEntity) String

func (m *UserEntity) String() string

func (*UserEntity) XXX_DiscardUnknown

func (m *UserEntity) XXX_DiscardUnknown()

func (*UserEntity) XXX_Marshal

func (m *UserEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserEntity) XXX_Merge

func (m *UserEntity) XXX_Merge(src proto.Message)

func (*UserEntity) XXX_Size

func (m *UserEntity) XXX_Size() int

func (*UserEntity) XXX_Unmarshal

func (m *UserEntity) XXX_Unmarshal(b []byte) error

type UserServiceClient

type UserServiceClient interface {
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

type UserServiceServer interface {
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
}

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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