user

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package user contains protobuf types for users.

Index

Constants

This section is empty.

Variables

Functions

func Set

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetClaim

func (user *User) GetClaim(claim string) interface{}

GetClaim gets a claim.

func (*User) GetClaims

func (x *User) GetClaims() map[string]*any.Any

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetVersion

func (x *User) GetVersion() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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