Documentation ¶
Overview ¶
Package user contains protobuf types for users.
Index ¶
- Variables
- func Set(ctx context.Context, client databroker.DataBrokerServiceClient, u *User) (*databroker.Record, error)
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (user *User) GetClaim(claim string) interface{}
- func (x *User) GetClaims() map[string]*any.Any
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetName() string
- func (x *User) GetVersion() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
func Set ¶
func Set(ctx context.Context, client databroker.DataBrokerServiceClient, u *User) (*databroker.Record, error)
Set sets a user in the databroker.
Types ¶
type User ¶
type User struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Claims map[string]*any.Any `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func Get ¶
func Get(ctx context.Context, client databroker.DataBrokerServiceClient, userID string) (*User, error)
Get gets a user from the databroker.
func (*User) Descriptor
deprecated
func (*User) GetVersion ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.