n13t_idm_v0

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: MIT Imports: 28 Imported by: 4

Documentation

Overview

Package n13t_idm_v0 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var HealthCheckResponse_ServingStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "SERVING",
	2: "NOT_SERVING",
}
View Source
var HealthCheckResponse_ServingStatus_value = map[string]int32{
	"UNKNOWN":     0,
	"SERVING":     1,
	"NOT_SERVING": 2,
}

Functions

func RegisterIdentityManagementHandler

func RegisterIdentityManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterIdentityManagementHandler registers the http handlers for service IdentityManagement to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterIdentityManagementHandlerClient

func RegisterIdentityManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdentityManagementClient) error

RegisterIdentityManagementHandlerClient registers the http handlers for service IdentityManagement to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IdentityManagementClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IdentityManagementClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IdentityManagementClient" to call the correct interceptors.

func RegisterIdentityManagementHandlerFromEndpoint

func RegisterIdentityManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterIdentityManagementHandlerFromEndpoint is same as RegisterIdentityManagementHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterIdentityManagementHandlerServer

func RegisterIdentityManagementHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IdentityManagementServer) error

RegisterIdentityManagementHandlerServer registers the http handlers for service IdentityManagement to "mux". UnaryRPC :call IdentityManagementServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterIdentityManagementServer

func RegisterIdentityManagementServer(s *grpc.Server, srv IdentityManagementServer)

Types

type ConcatReply

type ConcatReply struct {
	V                    string   `protobuf:"bytes,1,opt,name=v,proto3" json:"v,omitempty"`
	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The Concat response contains the result of the concatenation.

func (*ConcatReply) Descriptor

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

func (*ConcatReply) GetErr

func (m *ConcatReply) GetErr() string

func (*ConcatReply) GetV

func (m *ConcatReply) GetV() string

func (*ConcatReply) ProtoMessage

func (*ConcatReply) ProtoMessage()

func (*ConcatReply) Reset

func (m *ConcatReply) Reset()

func (*ConcatReply) String

func (m *ConcatReply) String() string

func (*ConcatReply) Validate

func (m *ConcatReply) Validate() error

Validate checks the field values on ConcatReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ConcatReply) XXX_DiscardUnknown

func (m *ConcatReply) XXX_DiscardUnknown()

func (*ConcatReply) XXX_Marshal

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

func (*ConcatReply) XXX_Merge

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

func (*ConcatReply) XXX_Size

func (m *ConcatReply) XXX_Size() int

func (*ConcatReply) XXX_Unmarshal

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

type ConcatReplyValidationError

type ConcatReplyValidationError struct {
	// contains filtered or unexported fields
}

ConcatReplyValidationError is the validation error returned by ConcatReply.Validate if the designated constraints aren't met.

func (ConcatReplyValidationError) Cause

Cause function returns cause value.

func (ConcatReplyValidationError) Error

Error satisfies the builtin error interface

func (ConcatReplyValidationError) ErrorName

func (e ConcatReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ConcatReplyValidationError) Field

Field function returns field value.

func (ConcatReplyValidationError) Key

Key function returns key value.

func (ConcatReplyValidationError) Reason

Reason function returns reason value.

type ConcatRequest

type ConcatRequest struct {
	A                    string   `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	B                    string   `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The Concat request contains two parameters.

func (*ConcatRequest) Descriptor

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

func (*ConcatRequest) GetA

func (m *ConcatRequest) GetA() string

func (*ConcatRequest) GetB

func (m *ConcatRequest) GetB() string

func (*ConcatRequest) ProtoMessage

func (*ConcatRequest) ProtoMessage()

func (*ConcatRequest) Reset

func (m *ConcatRequest) Reset()

func (*ConcatRequest) String

func (m *ConcatRequest) String() string

func (*ConcatRequest) Validate

func (m *ConcatRequest) Validate() error

Validate checks the field values on ConcatRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ConcatRequest) XXX_DiscardUnknown

func (m *ConcatRequest) XXX_DiscardUnknown()

func (*ConcatRequest) XXX_Marshal

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

func (*ConcatRequest) XXX_Merge

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

func (*ConcatRequest) XXX_Size

func (m *ConcatRequest) XXX_Size() int

func (*ConcatRequest) XXX_Unmarshal

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

type ConcatRequestValidationError

type ConcatRequestValidationError struct {
	// contains filtered or unexported fields
}

ConcatRequestValidationError is the validation error returned by ConcatRequest.Validate if the designated constraints aren't met.

func (ConcatRequestValidationError) Cause

Cause function returns cause value.

func (ConcatRequestValidationError) Error

Error satisfies the builtin error interface

func (ConcatRequestValidationError) ErrorName

func (e ConcatRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ConcatRequestValidationError) Field

Field function returns field value.

func (ConcatRequestValidationError) Key

Key function returns key value.

func (ConcatRequestValidationError) Reason

Reason function returns reason value.

type HealthCheckRequest

type HealthCheckRequest struct {
	Service              string   `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HealthCheckRequest) Descriptor

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

func (*HealthCheckRequest) GetService

func (m *HealthCheckRequest) GetService() string

func (*HealthCheckRequest) ProtoMessage

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) Reset

func (m *HealthCheckRequest) Reset()

func (*HealthCheckRequest) String

func (m *HealthCheckRequest) String() string

func (*HealthCheckRequest) Validate

func (m *HealthCheckRequest) Validate() error

Validate checks the field values on HealthCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*HealthCheckRequest) XXX_DiscardUnknown

func (m *HealthCheckRequest) XXX_DiscardUnknown()

func (*HealthCheckRequest) XXX_Marshal

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

func (*HealthCheckRequest) XXX_Merge

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

func (*HealthCheckRequest) XXX_Size

func (m *HealthCheckRequest) XXX_Size() int

func (*HealthCheckRequest) XXX_Unmarshal

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

type HealthCheckRequestValidationError

type HealthCheckRequestValidationError struct {
	// contains filtered or unexported fields
}

HealthCheckRequestValidationError is the validation error returned by HealthCheckRequest.Validate if the designated constraints aren't met.

func (HealthCheckRequestValidationError) Cause

Cause function returns cause value.

func (HealthCheckRequestValidationError) Error

Error satisfies the builtin error interface

func (HealthCheckRequestValidationError) ErrorName

ErrorName returns error name.

func (HealthCheckRequestValidationError) Field

Field function returns field value.

func (HealthCheckRequestValidationError) Key

Key function returns key value.

func (HealthCheckRequestValidationError) Reason

Reason function returns reason value.

type HealthCheckResponse

type HealthCheckResponse struct {
	Status               HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=n13t.idm.v0.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

func (*HealthCheckResponse) Descriptor

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

func (*HealthCheckResponse) GetStatus

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) Reset

func (m *HealthCheckResponse) Reset()

func (*HealthCheckResponse) String

func (m *HealthCheckResponse) String() string

func (*HealthCheckResponse) Validate

func (m *HealthCheckResponse) Validate() error

Validate checks the field values on HealthCheckResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*HealthCheckResponse) XXX_DiscardUnknown

func (m *HealthCheckResponse) XXX_DiscardUnknown()

func (*HealthCheckResponse) XXX_Marshal

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

func (*HealthCheckResponse) XXX_Merge

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

func (*HealthCheckResponse) XXX_Size

func (m *HealthCheckResponse) XXX_Size() int

func (*HealthCheckResponse) XXX_Unmarshal

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

type HealthCheckResponseValidationError

type HealthCheckResponseValidationError struct {
	// contains filtered or unexported fields
}

HealthCheckResponseValidationError is the validation error returned by HealthCheckResponse.Validate if the designated constraints aren't met.

func (HealthCheckResponseValidationError) Cause

Cause function returns cause value.

func (HealthCheckResponseValidationError) Error

Error satisfies the builtin error interface

func (HealthCheckResponseValidationError) ErrorName

ErrorName returns error name.

func (HealthCheckResponseValidationError) Field

Field function returns field value.

func (HealthCheckResponseValidationError) Key

Key function returns key value.

func (HealthCheckResponseValidationError) Reason

Reason function returns reason value.

type HealthCheckResponse_ServingStatus

type HealthCheckResponse_ServingStatus int32
const (
	HealthCheckResponse_UNKNOWN     HealthCheckResponse_ServingStatus = 0
	HealthCheckResponse_SERVING     HealthCheckResponse_ServingStatus = 1
	HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2
)

func (HealthCheckResponse_ServingStatus) EnumDescriptor

func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int)

func (HealthCheckResponse_ServingStatus) String

type IdentityManagementClient

type IdentityManagementClient interface {
	// Sums two integers.
	Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumReply, error)
	// Concatenates two strings
	Concat(ctx context.Context, in *ConcatRequest, opts ...grpc.CallOption) (*ConcatReply, error)
	CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*empty.Empty, error)
	/// the default rpc use for listing users
	//    rpc ListUsersStream(ListUsersRequest) returns (stream User) {
	//        option (google.api.http) = {
	//			get: "/v0/users"
	//		};
	//    }
	UpdateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*empty.Empty, error)
	DeleteUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*empty.Empty, error)
	// https://github.com/grpc/grpc/blob/master/doc/health-checking.md
	Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
	Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (IdentityManagement_WatchClient, error)
}

IdentityManagementClient is the client API for IdentityManagement service.

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

func NewIdentityManagementClient

func NewIdentityManagementClient(cc *grpc.ClientConn) IdentityManagementClient

type IdentityManagementServer

type IdentityManagementServer interface {
	// Sums two integers.
	Sum(context.Context, *SumRequest) (*SumReply, error)
	// Concatenates two strings
	Concat(context.Context, *ConcatRequest) (*ConcatReply, error)
	CreateUser(context.Context, *User) (*empty.Empty, error)
	/// the default rpc use for listing users
	//    rpc ListUsersStream(ListUsersRequest) returns (stream User) {
	//        option (google.api.http) = {
	//			get: "/v0/users"
	//		};
	//    }
	UpdateUser(context.Context, *User) (*empty.Empty, error)
	DeleteUser(context.Context, *User) (*empty.Empty, error)
	// https://github.com/grpc/grpc/blob/master/doc/health-checking.md
	Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
	Watch(*HealthCheckRequest, IdentityManagement_WatchServer) error
}

IdentityManagementServer is the server API for IdentityManagement service.

type IdentityManagement_WatchClient

type IdentityManagement_WatchClient interface {
	Recv() (*HealthCheckResponse, error)
	grpc.ClientStream
}

type IdentityManagement_WatchServer

type IdentityManagement_WatchServer interface {
	Send(*HealthCheckResponse) error
	grpc.ServerStream
}

type ListUsersRequest

type ListUsersRequest struct {
	Search               string   `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListUsersRequest) Descriptor

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

func (*ListUsersRequest) GetSearch

func (m *ListUsersRequest) GetSearch() string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) Reset

func (m *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (m *ListUsersRequest) String() string

func (*ListUsersRequest) Validate

func (m *ListUsersRequest) Validate() error

Validate checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 ListUsersRequestValidationError

type ListUsersRequestValidationError struct {
	// contains filtered or unexported fields
}

ListUsersRequestValidationError is the validation error returned by ListUsersRequest.Validate if the designated constraints aren't met.

func (ListUsersRequestValidationError) Cause

Cause function returns cause value.

func (ListUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUsersRequestValidationError) Field

Field function returns field value.

func (ListUsersRequestValidationError) Key

Key function returns key value.

func (ListUsersRequestValidationError) Reason

Reason function returns reason value.

type SearchRequest

type SearchRequest struct {
	Query                string   `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	PageNumber           int32    `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
	ResultPerPage        int32    `protobuf:"varint,3,opt,name=result_per_page,json=resultPerPage,proto3" json:"result_per_page,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SearchRequest) Descriptor

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

func (*SearchRequest) GetPageNumber

func (m *SearchRequest) GetPageNumber() int32

func (*SearchRequest) GetQuery

func (m *SearchRequest) GetQuery() string

func (*SearchRequest) GetResultPerPage

func (m *SearchRequest) GetResultPerPage() int32

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) Reset

func (m *SearchRequest) Reset()

func (*SearchRequest) String

func (m *SearchRequest) String() string

func (*SearchRequest) Validate

func (m *SearchRequest) Validate() error

Validate checks the field values on SearchRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SearchRequest) XXX_DiscardUnknown

func (m *SearchRequest) XXX_DiscardUnknown()

func (*SearchRequest) XXX_Marshal

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

func (*SearchRequest) XXX_Merge

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

func (*SearchRequest) XXX_Size

func (m *SearchRequest) XXX_Size() int

func (*SearchRequest) XXX_Unmarshal

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

type SearchRequestValidationError

type SearchRequestValidationError struct {
	// contains filtered or unexported fields
}

SearchRequestValidationError is the validation error returned by SearchRequest.Validate if the designated constraints aren't met.

func (SearchRequestValidationError) Cause

Cause function returns cause value.

func (SearchRequestValidationError) Error

Error satisfies the builtin error interface

func (SearchRequestValidationError) ErrorName

func (e SearchRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SearchRequestValidationError) Field

Field function returns field value.

func (SearchRequestValidationError) Key

Key function returns key value.

func (SearchRequestValidationError) Reason

Reason function returns reason value.

type SumReply

type SumReply struct {
	V                    int64    `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"`
	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The sum response contains the result of the calculation.

func (*SumReply) Descriptor

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

func (*SumReply) GetErr

func (m *SumReply) GetErr() string

func (*SumReply) GetV

func (m *SumReply) GetV() int64

func (*SumReply) ProtoMessage

func (*SumReply) ProtoMessage()

func (*SumReply) Reset

func (m *SumReply) Reset()

func (*SumReply) String

func (m *SumReply) String() string

func (*SumReply) Validate

func (m *SumReply) Validate() error

Validate checks the field values on SumReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SumReply) XXX_DiscardUnknown

func (m *SumReply) XXX_DiscardUnknown()

func (*SumReply) XXX_Marshal

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

func (*SumReply) XXX_Merge

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

func (*SumReply) XXX_Size

func (m *SumReply) XXX_Size() int

func (*SumReply) XXX_Unmarshal

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

type SumReplyValidationError

type SumReplyValidationError struct {
	// contains filtered or unexported fields
}

SumReplyValidationError is the validation error returned by SumReply.Validate if the designated constraints aren't met.

func (SumReplyValidationError) Cause

func (e SumReplyValidationError) Cause() error

Cause function returns cause value.

func (SumReplyValidationError) Error

func (e SumReplyValidationError) Error() string

Error satisfies the builtin error interface

func (SumReplyValidationError) ErrorName

func (e SumReplyValidationError) ErrorName() string

ErrorName returns error name.

func (SumReplyValidationError) Field

func (e SumReplyValidationError) Field() string

Field function returns field value.

func (SumReplyValidationError) Key

func (e SumReplyValidationError) Key() bool

Key function returns key value.

func (SumReplyValidationError) Reason

func (e SumReplyValidationError) Reason() string

Reason function returns reason value.

type SumRequest

type SumRequest struct {
	A                    int64    `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B                    int64    `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The sum request contains two parameters.

func (*SumRequest) Descriptor

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

func (*SumRequest) GetA

func (m *SumRequest) GetA() int64

func (*SumRequest) GetB

func (m *SumRequest) GetB() int64

func (*SumRequest) ProtoMessage

func (*SumRequest) ProtoMessage()

func (*SumRequest) Reset

func (m *SumRequest) Reset()

func (*SumRequest) String

func (m *SumRequest) String() string

func (*SumRequest) Validate

func (m *SumRequest) Validate() error

Validate checks the field values on SumRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SumRequest) XXX_DiscardUnknown

func (m *SumRequest) XXX_DiscardUnknown()

func (*SumRequest) XXX_Marshal

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

func (*SumRequest) XXX_Merge

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

func (*SumRequest) XXX_Size

func (m *SumRequest) XXX_Size() int

func (*SumRequest) XXX_Unmarshal

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

type SumRequestValidationError

type SumRequestValidationError struct {
	// contains filtered or unexported fields
}

SumRequestValidationError is the validation error returned by SumRequest.Validate if the designated constraints aren't met.

func (SumRequestValidationError) Cause

func (e SumRequestValidationError) Cause() error

Cause function returns cause value.

func (SumRequestValidationError) Error

Error satisfies the builtin error interface

func (SumRequestValidationError) ErrorName

func (e SumRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SumRequestValidationError) Field

Field function returns field value.

func (SumRequestValidationError) Key

Key function returns key value.

func (SumRequestValidationError) Reason

func (e SumRequestValidationError) Reason() string

Reason function returns reason value.

type UnimplementedIdentityManagementServer

type UnimplementedIdentityManagementServer struct {
}

UnimplementedIdentityManagementServer can be embedded to have forward compatible implementations.

func (*UnimplementedIdentityManagementServer) Check

func (*UnimplementedIdentityManagementServer) Concat

func (*UnimplementedIdentityManagementServer) CreateUser

func (*UnimplementedIdentityManagementServer) DeleteUser

func (*UnimplementedIdentityManagementServer) Sum

func (*UnimplementedIdentityManagementServer) UpdateUser

func (*UnimplementedIdentityManagementServer) Watch

type User

type User struct {
	Enabled bool `protobuf:"varint,9,opt,name=enabled,proto3" json:"enabled,omitempty"`
	//    google.protobuf.Timestamp created_at = 101;     // ???
	Attributes map[string]*any.Any `` /* 163-byte string literal not displayed */
	// OpenId Standard Claims Members (https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims)
	// Subject - Identifier for the End-User at the Issuer.
	Sub string `protobuf:"bytes,10,opt,name=sub,proto3" json:"sub,omitempty"`
	// End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
	Name string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"`
	// Given name(s) or first name(s) of the End-User.
	GivenName string `protobuf:"bytes,12,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"`
	// Surname(s) or last name(s) of the End-User
	FamilyName string `protobuf:"bytes,14,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"`
	// Middle name(s) of the End-User
	MiddleName string `protobuf:"bytes,15,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	// Casual name of the End-User
	Nickname string `protobuf:"bytes,16,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
	// This value MAY be any valid JSON string including special characters such as @, /, or whitespace (not unique!, see https://openid.net/specs/openid-connect-basic-1_0.html#ClaimStability)
	PreferredUsername string `protobuf:"bytes,17,opt,name=preferred_username,json=preferredUsername,proto3" json:"preferred_username,omitempty"`
	Profile           string `protobuf:"bytes,20,opt,name=profile,proto3" json:"profile,omitempty"`
	Picture           string `protobuf:"bytes,21,opt,name=picture,proto3" json:"picture,omitempty"`
	Website           string `protobuf:"bytes,22,opt,name=website,proto3" json:"website,omitempty"`
	// RFC5322  (not unique!, see https://openid.net/specs/openid-connect-basic-1_0.html#ClaimStability)
	Email         string `protobuf:"bytes,30,opt,name=email,proto3" json:"email,omitempty"`
	EmailVerified bool   `protobuf:"varint,31,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
	Gender        string `protobuf:"bytes,32,opt,name=gender,proto3" json:"gender,omitempty"`
	// ISO 8601:2004 YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed.
	Birthdate string `protobuf:"bytes,33,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
	// String from zoneinfo time zone database (the tz database) representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
	Zoneinfo string `protobuf:"bytes,34,opt,name=zoneinfo,proto3" json:"zoneinfo,omitempty"`
	// End-User's locale, represented as a BCP47 [RFC5646] language tag.
	// This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA.
	// As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
	Locale string `protobuf:"bytes,35,opt,name=locale,proto3" json:"locale,omitempty"`
	// Ex: +1 (425) 555-1212 or +56 (2) 687 2400   (E.164)
	//  or +1 (604) 555-1234;ext=5678              (RFC3966)
	// see E.164/RFC3966
	PhoneNumber          string               `protobuf:"bytes,40,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	PhoneNumberVerified  bool                 `protobuf:"varint,41,opt,name=phone_number_verified,json=phoneNumberVerified,proto3" json:"phone_number_verified,omitempty"`
	Address              *User_Address        `protobuf:"bytes,42,opt,name=address,proto3" json:"address,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,102,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

* Represents the user

Compatible with OIDC (OpenID Connect)

func (*User) Descriptor

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

func (*User) GetAddress

func (m *User) GetAddress() *User_Address

func (*User) GetAttributes

func (m *User) GetAttributes() map[string]*any.Any

func (*User) GetBirthdate

func (m *User) GetBirthdate() string

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetEmailVerified

func (m *User) GetEmailVerified() bool

func (*User) GetEnabled

func (m *User) GetEnabled() bool

func (*User) GetFamilyName

func (m *User) GetFamilyName() string

func (*User) GetGender

func (m *User) GetGender() string

func (*User) GetGivenName

func (m *User) GetGivenName() string

func (*User) GetLocale

func (m *User) GetLocale() string

func (*User) GetMiddleName

func (m *User) GetMiddleName() string

func (*User) GetName

func (m *User) GetName() string

func (*User) GetNickname

func (m *User) GetNickname() string

func (*User) GetPhoneNumber

func (m *User) GetPhoneNumber() string

func (*User) GetPhoneNumberVerified

func (m *User) GetPhoneNumberVerified() bool

func (*User) GetPicture

func (m *User) GetPicture() string

func (*User) GetPreferredUsername

func (m *User) GetPreferredUsername() string

func (*User) GetProfile

func (m *User) GetProfile() string

func (*User) GetSub

func (m *User) GetSub() string

func (*User) GetUpdatedAt

func (m *User) GetUpdatedAt() *timestamp.Timestamp

func (*User) GetWebsite

func (m *User) GetWebsite() string

func (*User) GetZoneinfo

func (m *User) GetZoneinfo() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type User_Address

type User_Address struct {
	Formatted            string   `protobuf:"bytes,1,opt,name=formatted,proto3" json:"formatted,omitempty"`
	StreetAddress        string   `protobuf:"bytes,2,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
	Locality             string   `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality,omitempty"`
	Region               string   `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
	PostalCode           string   `protobuf:"bytes,5,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	Country              string   `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

https://openid.net/specs/openid-connect-core-1_0.html#AddressClaim

func (*User_Address) Descriptor

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

func (*User_Address) GetCountry

func (m *User_Address) GetCountry() string

func (*User_Address) GetFormatted

func (m *User_Address) GetFormatted() string

func (*User_Address) GetLocality

func (m *User_Address) GetLocality() string

func (*User_Address) GetPostalCode

func (m *User_Address) GetPostalCode() string

func (*User_Address) GetRegion

func (m *User_Address) GetRegion() string

func (*User_Address) GetStreetAddress

func (m *User_Address) GetStreetAddress() string

func (*User_Address) ProtoMessage

func (*User_Address) ProtoMessage()

func (*User_Address) Reset

func (m *User_Address) Reset()

func (*User_Address) String

func (m *User_Address) String() string

func (*User_Address) Validate

func (m *User_Address) Validate() error

Validate checks the field values on User_Address with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*User_Address) XXX_DiscardUnknown

func (m *User_Address) XXX_DiscardUnknown()

func (*User_Address) XXX_Marshal

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

func (*User_Address) XXX_Merge

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

func (*User_Address) XXX_Size

func (m *User_Address) XXX_Size() int

func (*User_Address) XXX_Unmarshal

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

type User_AddressValidationError

type User_AddressValidationError struct {
	// contains filtered or unexported fields
}

User_AddressValidationError is the validation error returned by User_Address.Validate if the designated constraints aren't met.

func (User_AddressValidationError) Cause

Cause function returns cause value.

func (User_AddressValidationError) Error

Error satisfies the builtin error interface

func (User_AddressValidationError) ErrorName

func (e User_AddressValidationError) ErrorName() string

ErrorName returns error name.

func (User_AddressValidationError) Field

Field function returns field value.

func (User_AddressValidationError) Key

Key function returns key value.

func (User_AddressValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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