pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_member_proto protoreflect.FileDescriptor

Functions

func MemberServiceClientType

func MemberServiceClientType() reflect.Type

MemberServiceClientType .

func MemberServiceHandlerType

func MemberServiceHandlerType() reflect.Type

MemberServiceHandlerType .

func MemberServiceServerType

func MemberServiceServerType() reflect.Type

MemberServiceServerType .

func RegisterMemberServiceHandler

func RegisterMemberServiceHandler(r http.Router, srv MemberServiceHandler, opts ...http.HandleOption)

RegisterMemberServiceHandler register MemberServiceHandler to http.Router.

func RegisterMemberServiceImp

func RegisterMemberServiceImp(regester transport.Register, srv MemberServiceServer, opts ...transport.ServiceOption)

RegisterMemberServiceImp member.proto

func RegisterMemberServiceServer

func RegisterMemberServiceServer(s grpc1.ServiceRegistrar, srv MemberServiceServer, opts ...grpc1.HandleOption)

func ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func Types

func Types() []reflect.Type

Types

type CreateOrUpdateMemberRequest

type CreateOrUpdateMemberRequest struct {
	Scope           *Scope            `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
	TargetScopeType string            `protobuf:"bytes,2,opt,name=targetScopeType,proto3" json:"targetScopeType,omitempty"`
	TargetScopeIds  []int64           `protobuf:"varint,3,rep,packed,name=targetScopeIds,proto3" json:"targetScopeIds,omitempty"`
	Roles           []string          `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
	UserIds         []string          `protobuf:"bytes,5,rep,name=userIds,proto3" json:"userIds,omitempty"`
	Options         *MemberAddOptions `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
	Labels          []string          `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty"`
	VerifyCode      string            `protobuf:"bytes,8,opt,name=verifyCode,proto3" json:"verifyCode,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateMemberRequest) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateMemberRequest.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateMemberRequest) GetLabels

func (x *CreateOrUpdateMemberRequest) GetLabels() []string

func (*CreateOrUpdateMemberRequest) GetOptions

func (*CreateOrUpdateMemberRequest) GetRoles

func (x *CreateOrUpdateMemberRequest) GetRoles() []string

func (*CreateOrUpdateMemberRequest) GetScope

func (x *CreateOrUpdateMemberRequest) GetScope() *Scope

func (*CreateOrUpdateMemberRequest) GetTargetScopeIds

func (x *CreateOrUpdateMemberRequest) GetTargetScopeIds() []int64

func (*CreateOrUpdateMemberRequest) GetTargetScopeType

func (x *CreateOrUpdateMemberRequest) GetTargetScopeType() string

func (*CreateOrUpdateMemberRequest) GetUserIds

func (x *CreateOrUpdateMemberRequest) GetUserIds() []string

func (*CreateOrUpdateMemberRequest) GetVerifyCode

func (x *CreateOrUpdateMemberRequest) GetVerifyCode() string

func (*CreateOrUpdateMemberRequest) MarshalJSON

func (m *CreateOrUpdateMemberRequest) MarshalJSON() ([]byte, error)

CreateOrUpdateMemberRequest implement json.Marshaler.

func (*CreateOrUpdateMemberRequest) ProtoMessage

func (*CreateOrUpdateMemberRequest) ProtoMessage()

func (*CreateOrUpdateMemberRequest) ProtoReflect

func (*CreateOrUpdateMemberRequest) Reset

func (x *CreateOrUpdateMemberRequest) Reset()

func (*CreateOrUpdateMemberRequest) String

func (x *CreateOrUpdateMemberRequest) String() string

func (*CreateOrUpdateMemberRequest) UnmarshalJSON

func (m *CreateOrUpdateMemberRequest) UnmarshalJSON(b []byte) error

CreateOrUpdateMemberRequest implement json.Marshaler.

func (*CreateOrUpdateMemberRequest) UnmarshalURLValues

func (m *CreateOrUpdateMemberRequest) UnmarshalURLValues(prefix string, values url.Values) error

CreateOrUpdateMemberRequest implement urlenc.URLValuesUnmarshaler.

func (*CreateOrUpdateMemberRequest) Validate

func (this *CreateOrUpdateMemberRequest) Validate() error

type CreateOrUpdateMemberResponse

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

func (*CreateOrUpdateMemberResponse) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateMemberResponse.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateMemberResponse) MarshalJSON

func (m *CreateOrUpdateMemberResponse) MarshalJSON() ([]byte, error)

CreateOrUpdateMemberResponse implement json.Marshaler.

func (*CreateOrUpdateMemberResponse) ProtoMessage

func (*CreateOrUpdateMemberResponse) ProtoMessage()

func (*CreateOrUpdateMemberResponse) ProtoReflect

func (*CreateOrUpdateMemberResponse) Reset

func (x *CreateOrUpdateMemberResponse) Reset()

func (*CreateOrUpdateMemberResponse) String

func (*CreateOrUpdateMemberResponse) UnmarshalJSON

func (m *CreateOrUpdateMemberResponse) UnmarshalJSON(b []byte) error

CreateOrUpdateMemberResponse implement json.Marshaler.

func (*CreateOrUpdateMemberResponse) UnmarshalURLValues

func (m *CreateOrUpdateMemberResponse) UnmarshalURLValues(prefix string, values url.Values) error

CreateOrUpdateMemberResponse implement urlenc.URLValuesUnmarshaler.

func (*CreateOrUpdateMemberResponse) Validate

func (this *CreateOrUpdateMemberResponse) Validate() error

type DeleteMemberRequest

type DeleteMemberRequest struct {
	Scope          *Scope   `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
	UserIds        []string `protobuf:"bytes,2,rep,name=userIds,proto3" json:"userIds,omitempty"`
	UserID         string   `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"`
	InternalClient string   `protobuf:"bytes,4,opt,name=internalClient,json=-,proto3" json:"internalClient,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMemberRequest) Descriptor deprecated

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

Deprecated: Use DeleteMemberRequest.ProtoReflect.Descriptor instead.

func (*DeleteMemberRequest) GetInternalClient

func (x *DeleteMemberRequest) GetInternalClient() string

func (*DeleteMemberRequest) GetScope

func (x *DeleteMemberRequest) GetScope() *Scope

func (*DeleteMemberRequest) GetUserID

func (x *DeleteMemberRequest) GetUserID() string

func (*DeleteMemberRequest) GetUserIds

func (x *DeleteMemberRequest) GetUserIds() []string

func (*DeleteMemberRequest) MarshalJSON

func (m *DeleteMemberRequest) MarshalJSON() ([]byte, error)

DeleteMemberRequest implement json.Marshaler.

func (*DeleteMemberRequest) ProtoMessage

func (*DeleteMemberRequest) ProtoMessage()

func (*DeleteMemberRequest) ProtoReflect

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

func (*DeleteMemberRequest) Reset

func (x *DeleteMemberRequest) Reset()

func (*DeleteMemberRequest) String

func (x *DeleteMemberRequest) String() string

func (*DeleteMemberRequest) UnmarshalJSON

func (m *DeleteMemberRequest) UnmarshalJSON(b []byte) error

DeleteMemberRequest implement json.Marshaler.

func (*DeleteMemberRequest) UnmarshalURLValues

func (m *DeleteMemberRequest) UnmarshalURLValues(prefix string, values url.Values) error

DeleteMemberRequest implement urlenc.URLValuesUnmarshaler.

func (*DeleteMemberRequest) Validate

func (this *DeleteMemberRequest) Validate() error

type DeleteMemberResponse

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

func (*DeleteMemberResponse) Descriptor deprecated

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

Deprecated: Use DeleteMemberResponse.ProtoReflect.Descriptor instead.

func (*DeleteMemberResponse) MarshalJSON

func (m *DeleteMemberResponse) MarshalJSON() ([]byte, error)

DeleteMemberResponse implement json.Marshaler.

func (*DeleteMemberResponse) ProtoMessage

func (*DeleteMemberResponse) ProtoMessage()

func (*DeleteMemberResponse) ProtoReflect

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

func (*DeleteMemberResponse) Reset

func (x *DeleteMemberResponse) Reset()

func (*DeleteMemberResponse) String

func (x *DeleteMemberResponse) String() string

func (*DeleteMemberResponse) UnmarshalJSON

func (m *DeleteMemberResponse) UnmarshalJSON(b []byte) error

DeleteMemberResponse implement json.Marshaler.

func (*DeleteMemberResponse) UnmarshalURLValues

func (m *DeleteMemberResponse) UnmarshalURLValues(prefix string, values url.Values) error

DeleteMemberResponse implement urlenc.URLValuesUnmarshaler.

func (*DeleteMemberResponse) Validate

func (this *DeleteMemberResponse) Validate() error

type ListMemberRequest

type ListMemberRequest struct {
	ScopeType string   `protobuf:"bytes,1,opt,name=scopeType,proto3" json:"scopeType,omitempty"`
	ScopeId   string   `protobuf:"bytes,2,opt,name=scopeId,proto3" json:"scopeId,omitempty"`
	PageNo    int64    `protobuf:"varint,3,opt,name=pageNo,proto3" json:"pageNo,omitempty"`
	PageSize  int64    `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Q         string   `protobuf:"bytes,5,opt,name=q,proto3" json:"q,omitempty"`
	Roles     []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	Label     []string `protobuf:"bytes,7,rep,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMemberRequest) Descriptor deprecated

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

Deprecated: Use ListMemberRequest.ProtoReflect.Descriptor instead.

func (*ListMemberRequest) GetLabel

func (x *ListMemberRequest) GetLabel() []string

func (*ListMemberRequest) GetPageNo

func (x *ListMemberRequest) GetPageNo() int64

func (*ListMemberRequest) GetPageSize

func (x *ListMemberRequest) GetPageSize() int64

func (*ListMemberRequest) GetQ

func (x *ListMemberRequest) GetQ() string

func (*ListMemberRequest) GetRoles

func (x *ListMemberRequest) GetRoles() []string

func (*ListMemberRequest) GetScopeId

func (x *ListMemberRequest) GetScopeId() string

func (*ListMemberRequest) GetScopeType

func (x *ListMemberRequest) GetScopeType() string

func (*ListMemberRequest) MarshalJSON

func (m *ListMemberRequest) MarshalJSON() ([]byte, error)

ListMemberRequest implement json.Marshaler.

func (*ListMemberRequest) ProtoMessage

func (*ListMemberRequest) ProtoMessage()

func (*ListMemberRequest) ProtoReflect

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

func (*ListMemberRequest) Reset

func (x *ListMemberRequest) Reset()

func (*ListMemberRequest) String

func (x *ListMemberRequest) String() string

func (*ListMemberRequest) UnmarshalJSON

func (m *ListMemberRequest) UnmarshalJSON(b []byte) error

ListMemberRequest implement json.Marshaler.

func (*ListMemberRequest) UnmarshalURLValues

func (m *ListMemberRequest) UnmarshalURLValues(prefix string, values url.Values) error

ListMemberRequest implement urlenc.URLValuesUnmarshaler.

func (*ListMemberRequest) Validate

func (this *ListMemberRequest) Validate() error

type ListMemberResponse

type ListMemberResponse struct {
	Data *MemberList `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMemberResponse) Descriptor deprecated

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

Deprecated: Use ListMemberResponse.ProtoReflect.Descriptor instead.

func (*ListMemberResponse) GetData

func (x *ListMemberResponse) GetData() *MemberList

func (*ListMemberResponse) MarshalJSON

func (m *ListMemberResponse) MarshalJSON() ([]byte, error)

ListMemberResponse implement json.Marshaler.

func (*ListMemberResponse) ProtoMessage

func (*ListMemberResponse) ProtoMessage()

func (*ListMemberResponse) ProtoReflect

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

func (*ListMemberResponse) Reset

func (x *ListMemberResponse) Reset()

func (*ListMemberResponse) String

func (x *ListMemberResponse) String() string

func (*ListMemberResponse) UnmarshalJSON

func (m *ListMemberResponse) UnmarshalJSON(b []byte) error

ListMemberResponse implement json.Marshaler.

func (*ListMemberResponse) UnmarshalURLValues

func (m *ListMemberResponse) UnmarshalURLValues(prefix string, values url.Values) error

ListMemberResponse implement urlenc.URLValuesUnmarshaler.

func (*ListMemberResponse) Validate

func (this *ListMemberResponse) Validate() error

type ListMemberRolesRequest

type ListMemberRolesRequest struct {
	ScopeType string `protobuf:"bytes,1,opt,name=scopeType,proto3" json:"scopeType,omitempty"`
	ScopeId   string `protobuf:"bytes,2,opt,name=scopeId,proto3" json:"scopeId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMemberRolesRequest) Descriptor deprecated

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

Deprecated: Use ListMemberRolesRequest.ProtoReflect.Descriptor instead.

func (*ListMemberRolesRequest) GetScopeId

func (x *ListMemberRolesRequest) GetScopeId() string

func (*ListMemberRolesRequest) GetScopeType

func (x *ListMemberRolesRequest) GetScopeType() string

func (*ListMemberRolesRequest) MarshalJSON

func (m *ListMemberRolesRequest) MarshalJSON() ([]byte, error)

ListMemberRolesRequest implement json.Marshaler.

func (*ListMemberRolesRequest) ProtoMessage

func (*ListMemberRolesRequest) ProtoMessage()

func (*ListMemberRolesRequest) ProtoReflect

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

func (*ListMemberRolesRequest) Reset

func (x *ListMemberRolesRequest) Reset()

func (*ListMemberRolesRequest) String

func (x *ListMemberRolesRequest) String() string

func (*ListMemberRolesRequest) UnmarshalJSON

func (m *ListMemberRolesRequest) UnmarshalJSON(b []byte) error

ListMemberRolesRequest implement json.Marshaler.

func (*ListMemberRolesRequest) UnmarshalURLValues

func (m *ListMemberRolesRequest) UnmarshalURLValues(prefix string, values url.Values) error

ListMemberRolesRequest implement urlenc.URLValuesUnmarshaler.

func (*ListMemberRolesRequest) Validate

func (this *ListMemberRolesRequest) Validate() error

type ListMemberRolesResponse

type ListMemberRolesResponse struct {
	Data *RoleList `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMemberRolesResponse) Descriptor deprecated

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

Deprecated: Use ListMemberRolesResponse.ProtoReflect.Descriptor instead.

func (*ListMemberRolesResponse) GetData

func (x *ListMemberRolesResponse) GetData() *RoleList

func (*ListMemberRolesResponse) MarshalJSON

func (m *ListMemberRolesResponse) MarshalJSON() ([]byte, error)

ListMemberRolesResponse implement json.Marshaler.

func (*ListMemberRolesResponse) ProtoMessage

func (*ListMemberRolesResponse) ProtoMessage()

func (*ListMemberRolesResponse) ProtoReflect

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

func (*ListMemberRolesResponse) Reset

func (x *ListMemberRolesResponse) Reset()

func (*ListMemberRolesResponse) String

func (x *ListMemberRolesResponse) String() string

func (*ListMemberRolesResponse) UnmarshalJSON

func (m *ListMemberRolesResponse) UnmarshalJSON(b []byte) error

ListMemberRolesResponse implement json.Marshaler.

func (*ListMemberRolesResponse) UnmarshalURLValues

func (m *ListMemberRolesResponse) UnmarshalURLValues(prefix string, values url.Values) error

ListMemberRolesResponse implement urlenc.URLValuesUnmarshaler.

func (*ListMemberRolesResponse) Validate

func (this *ListMemberRolesResponse) Validate() error

type Member

type Member struct {
	UserId  string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Email   string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Mobile  string   `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Name    string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Nick    string   `protobuf:"bytes,5,opt,name=nick,proto3" json:"nick,omitempty"`
	Avatar  string   `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Status  string   `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	Scope   *Scope   `protobuf:"bytes,8,opt,name=scope,proto3" json:"scope,omitempty"`
	Roles   []string `protobuf:"bytes,9,rep,name=roles,proto3" json:"roles,omitempty"`
	Labels  []string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty"`
	Removed bool     `protobuf:"varint,11,opt,name=removed,proto3" json:"removed,omitempty"`
	Deleted bool     `protobuf:"varint,12,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*Member) Descriptor deprecated

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

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetAvatar

func (x *Member) GetAvatar() string

func (*Member) GetDeleted

func (x *Member) GetDeleted() bool

func (*Member) GetEmail

func (x *Member) GetEmail() string

func (*Member) GetLabels

func (x *Member) GetLabels() []string

func (*Member) GetMobile

func (x *Member) GetMobile() string

func (*Member) GetName

func (x *Member) GetName() string

func (*Member) GetNick

func (x *Member) GetNick() string

func (*Member) GetRemoved

func (x *Member) GetRemoved() bool

func (*Member) GetRoles

func (x *Member) GetRoles() []string

func (*Member) GetScope

func (x *Member) GetScope() *Scope

func (*Member) GetStatus

func (x *Member) GetStatus() string

func (*Member) GetUserId

func (x *Member) GetUserId() string

func (*Member) MarshalJSON

func (m *Member) MarshalJSON() ([]byte, error)

Member implement json.Marshaler.

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

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

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

func (*Member) UnmarshalJSON

func (m *Member) UnmarshalJSON(b []byte) error

Member implement json.Marshaler.

func (*Member) UnmarshalURLValues

func (m *Member) UnmarshalURLValues(prefix string, values url.Values) error

Member implement urlenc.URLValuesUnmarshaler.

func (*Member) Validate

func (this *Member) Validate() error

type MemberAddOptions

type MemberAddOptions struct {
	Rewrite bool `protobuf:"varint,1,opt,name=rewrite,proto3" json:"rewrite,omitempty"`
	// contains filtered or unexported fields
}

func (*MemberAddOptions) Descriptor deprecated

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

Deprecated: Use MemberAddOptions.ProtoReflect.Descriptor instead.

func (*MemberAddOptions) GetRewrite

func (x *MemberAddOptions) GetRewrite() bool

func (*MemberAddOptions) MarshalJSON

func (m *MemberAddOptions) MarshalJSON() ([]byte, error)

MemberAddOptions implement json.Marshaler.

func (*MemberAddOptions) ProtoMessage

func (*MemberAddOptions) ProtoMessage()

func (*MemberAddOptions) ProtoReflect

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

func (*MemberAddOptions) Reset

func (x *MemberAddOptions) Reset()

func (*MemberAddOptions) String

func (x *MemberAddOptions) String() string

func (*MemberAddOptions) UnmarshalJSON

func (m *MemberAddOptions) UnmarshalJSON(b []byte) error

MemberAddOptions implement json.Marshaler.

func (*MemberAddOptions) UnmarshalURLValues

func (m *MemberAddOptions) UnmarshalURLValues(prefix string, values url.Values) error

MemberAddOptions implement urlenc.URLValuesUnmarshaler.

func (*MemberAddOptions) Validate

func (this *MemberAddOptions) Validate() error

type MemberList

type MemberList struct {
	List  []*Member `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64     `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*MemberList) Descriptor deprecated

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

Deprecated: Use MemberList.ProtoReflect.Descriptor instead.

func (*MemberList) GetList

func (x *MemberList) GetList() []*Member

func (*MemberList) GetTotal

func (x *MemberList) GetTotal() int64

func (*MemberList) MarshalJSON

func (m *MemberList) MarshalJSON() ([]byte, error)

MemberList implement json.Marshaler.

func (*MemberList) ProtoMessage

func (*MemberList) ProtoMessage()

func (*MemberList) ProtoReflect

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

func (*MemberList) Reset

func (x *MemberList) Reset()

func (*MemberList) String

func (x *MemberList) String() string

func (*MemberList) UnmarshalJSON

func (m *MemberList) UnmarshalJSON(b []byte) error

MemberList implement json.Marshaler.

func (*MemberList) UnmarshalURLValues

func (m *MemberList) UnmarshalURLValues(prefix string, values url.Values) error

MemberList implement urlenc.URLValuesUnmarshaler.

func (*MemberList) Validate

func (this *MemberList) Validate() error

type MemberServiceClient

type MemberServiceClient interface {
	ScopeRoleAccess(ctx context.Context, in *ScopeRoleAccessRequest, opts ...grpc.CallOption) (*ScopeRoleAccessResponse, error)
	ListMember(ctx context.Context, in *ListMemberRequest, opts ...grpc.CallOption) (*ListMemberResponse, error)
	CreateOrUpdateMember(ctx context.Context, in *CreateOrUpdateMemberRequest, opts ...grpc.CallOption) (*CreateOrUpdateMemberResponse, error)
	DeleteMember(ctx context.Context, in *DeleteMemberRequest, opts ...grpc.CallOption) (*DeleteMemberResponse, error)
	ListMemberRoles(ctx context.Context, in *ListMemberRolesRequest, opts ...grpc.CallOption) (*ListMemberRolesResponse, error)
}

MemberServiceClient is the client API for MemberService 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 MemberServiceHandler

type MemberServiceHandler interface {
	// POST /api/msp/permission/access
	ScopeRoleAccess(context.Context, *ScopeRoleAccessRequest) (*ScopeRoleAccessResponse, error)
	// GET /api/msp/members
	ListMember(context.Context, *ListMemberRequest) (*ListMemberResponse, error)
	// POST /api/msp/members
	CreateOrUpdateMember(context.Context, *CreateOrUpdateMemberRequest) (*CreateOrUpdateMemberResponse, error)
	// POST /api/msp/members/action/remove
	DeleteMember(context.Context, *DeleteMemberRequest) (*DeleteMemberResponse, error)
	// GET /api/msp/members/action/list-roles
	ListMemberRoles(context.Context, *ListMemberRolesRequest) (*ListMemberRolesResponse, error)
}

MemberServiceHandler is the server API for MemberService service.

type MemberServiceServer

MemberServiceServer is the server API for MemberService service. All implementations should embed UnimplementedMemberServiceServer for forward compatibility

type RoleInfo

type RoleInfo struct {
	Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleInfo) Descriptor deprecated

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

Deprecated: Use RoleInfo.ProtoReflect.Descriptor instead.

func (*RoleInfo) GetName

func (x *RoleInfo) GetName() string

func (*RoleInfo) GetRole

func (x *RoleInfo) GetRole() string

func (*RoleInfo) MarshalJSON

func (m *RoleInfo) MarshalJSON() ([]byte, error)

RoleInfo implement json.Marshaler.

func (*RoleInfo) ProtoMessage

func (*RoleInfo) ProtoMessage()

func (*RoleInfo) ProtoReflect

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

func (*RoleInfo) Reset

func (x *RoleInfo) Reset()

func (*RoleInfo) String

func (x *RoleInfo) String() string

func (*RoleInfo) UnmarshalJSON

func (m *RoleInfo) UnmarshalJSON(b []byte) error

RoleInfo implement json.Marshaler.

func (*RoleInfo) UnmarshalURLValues

func (m *RoleInfo) UnmarshalURLValues(prefix string, values url.Values) error

RoleInfo implement urlenc.URLValuesUnmarshaler.

func (*RoleInfo) Validate

func (this *RoleInfo) Validate() error

type RoleList

type RoleList struct {
	List  []*RoleInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64       `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleList) Descriptor deprecated

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

Deprecated: Use RoleList.ProtoReflect.Descriptor instead.

func (*RoleList) GetList

func (x *RoleList) GetList() []*RoleInfo

func (*RoleList) GetTotal

func (x *RoleList) GetTotal() int64

func (*RoleList) MarshalJSON

func (m *RoleList) MarshalJSON() ([]byte, error)

RoleList implement json.Marshaler.

func (*RoleList) ProtoMessage

func (*RoleList) ProtoMessage()

func (*RoleList) ProtoReflect

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

func (*RoleList) Reset

func (x *RoleList) Reset()

func (*RoleList) String

func (x *RoleList) String() string

func (*RoleList) UnmarshalJSON

func (m *RoleList) UnmarshalJSON(b []byte) error

RoleList implement json.Marshaler.

func (*RoleList) UnmarshalURLValues

func (m *RoleList) UnmarshalURLValues(prefix string, values url.Values) error

RoleList implement urlenc.URLValuesUnmarshaler.

func (*RoleList) Validate

func (this *RoleList) Validate() error

type Scope

type Scope struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Scope) Descriptor deprecated

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

Deprecated: Use Scope.ProtoReflect.Descriptor instead.

func (*Scope) GetId

func (x *Scope) GetId() string

func (*Scope) GetType

func (x *Scope) GetType() string

func (*Scope) MarshalJSON

func (m *Scope) MarshalJSON() ([]byte, error)

Scope implement json.Marshaler.

func (*Scope) ProtoMessage

func (*Scope) ProtoMessage()

func (*Scope) ProtoReflect

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

func (*Scope) Reset

func (x *Scope) Reset()

func (*Scope) String

func (x *Scope) String() string

func (*Scope) UnmarshalJSON

func (m *Scope) UnmarshalJSON(b []byte) error

Scope implement json.Marshaler.

func (*Scope) UnmarshalURLValues

func (m *Scope) UnmarshalURLValues(prefix string, values url.Values) error

Scope implement urlenc.URLValuesUnmarshaler.

func (*Scope) Validate

func (this *Scope) Validate() error

type ScopeResource

type ScopeResource struct {
	Resource     string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Action       string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	ResourceRole string `protobuf:"bytes,3,opt,name=resourceRole,proto3" json:"resourceRole,omitempty"`
	// contains filtered or unexported fields
}

func (*ScopeResource) Descriptor deprecated

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

Deprecated: Use ScopeResource.ProtoReflect.Descriptor instead.

func (*ScopeResource) GetAction

func (x *ScopeResource) GetAction() string

func (*ScopeResource) GetResource

func (x *ScopeResource) GetResource() string

func (*ScopeResource) GetResourceRole

func (x *ScopeResource) GetResourceRole() string

func (*ScopeResource) MarshalJSON

func (m *ScopeResource) MarshalJSON() ([]byte, error)

ScopeResource implement json.Marshaler.

func (*ScopeResource) ProtoMessage

func (*ScopeResource) ProtoMessage()

func (*ScopeResource) ProtoReflect

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

func (*ScopeResource) Reset

func (x *ScopeResource) Reset()

func (*ScopeResource) String

func (x *ScopeResource) String() string

func (*ScopeResource) UnmarshalJSON

func (m *ScopeResource) UnmarshalJSON(b []byte) error

ScopeResource implement json.Marshaler.

func (*ScopeResource) UnmarshalURLValues

func (m *ScopeResource) UnmarshalURLValues(prefix string, values url.Values) error

ScopeResource implement urlenc.URLValuesUnmarshaler.

func (*ScopeResource) Validate

func (this *ScopeResource) Validate() error

type ScopeRoleAccessRequest

type ScopeRoleAccessRequest struct {
	Scope *Scope `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
	// contains filtered or unexported fields
}

func (*ScopeRoleAccessRequest) Descriptor deprecated

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

Deprecated: Use ScopeRoleAccessRequest.ProtoReflect.Descriptor instead.

func (*ScopeRoleAccessRequest) GetScope

func (x *ScopeRoleAccessRequest) GetScope() *Scope

func (*ScopeRoleAccessRequest) MarshalJSON

func (m *ScopeRoleAccessRequest) MarshalJSON() ([]byte, error)

ScopeRoleAccessRequest implement json.Marshaler.

func (*ScopeRoleAccessRequest) ProtoMessage

func (*ScopeRoleAccessRequest) ProtoMessage()

func (*ScopeRoleAccessRequest) ProtoReflect

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

func (*ScopeRoleAccessRequest) Reset

func (x *ScopeRoleAccessRequest) Reset()

func (*ScopeRoleAccessRequest) String

func (x *ScopeRoleAccessRequest) String() string

func (*ScopeRoleAccessRequest) UnmarshalJSON

func (m *ScopeRoleAccessRequest) UnmarshalJSON(b []byte) error

ScopeRoleAccessRequest implement json.Marshaler.

func (*ScopeRoleAccessRequest) UnmarshalURLValues

func (m *ScopeRoleAccessRequest) UnmarshalURLValues(prefix string, values url.Values) error

ScopeRoleAccessRequest implement urlenc.URLValuesUnmarshaler.

func (*ScopeRoleAccessRequest) Validate

func (this *ScopeRoleAccessRequest) Validate() error

type ScopeRoleAccessResponse

type ScopeRoleAccessResponse struct {
	Data    *ScopeRoleData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	UserIDs []string       `protobuf:"bytes,2,rep,name=userIDs,proto3" json:"userIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*ScopeRoleAccessResponse) Descriptor deprecated

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

Deprecated: Use ScopeRoleAccessResponse.ProtoReflect.Descriptor instead.

func (*ScopeRoleAccessResponse) GetData

func (x *ScopeRoleAccessResponse) GetData() *ScopeRoleData

func (*ScopeRoleAccessResponse) GetUserIDs

func (x *ScopeRoleAccessResponse) GetUserIDs() []string

func (*ScopeRoleAccessResponse) MarshalJSON

func (m *ScopeRoleAccessResponse) MarshalJSON() ([]byte, error)

ScopeRoleAccessResponse implement json.Marshaler.

func (*ScopeRoleAccessResponse) ProtoMessage

func (*ScopeRoleAccessResponse) ProtoMessage()

func (*ScopeRoleAccessResponse) ProtoReflect

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

func (*ScopeRoleAccessResponse) Reset

func (x *ScopeRoleAccessResponse) Reset()

func (*ScopeRoleAccessResponse) String

func (x *ScopeRoleAccessResponse) String() string

func (*ScopeRoleAccessResponse) UnmarshalJSON

func (m *ScopeRoleAccessResponse) UnmarshalJSON(b []byte) error

ScopeRoleAccessResponse implement json.Marshaler.

func (*ScopeRoleAccessResponse) UnmarshalURLValues

func (m *ScopeRoleAccessResponse) UnmarshalURLValues(prefix string, values url.Values) error

ScopeRoleAccessResponse implement urlenc.URLValuesUnmarshaler.

func (*ScopeRoleAccessResponse) Validate

func (this *ScopeRoleAccessResponse) Validate() error

type ScopeRoleData

type ScopeRoleData struct {
	Access                   bool             `protobuf:"varint,1,opt,name=access,proto3" json:"access,omitempty"`
	Roles                    []string         `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	PermissionList           []*ScopeResource `protobuf:"bytes,3,rep,name=permissionList,proto3" json:"permissionList,omitempty"`
	ResourceRoleList         []*ScopeResource `protobuf:"bytes,4,rep,name=resourceRoleList,proto3" json:"resourceRoleList,omitempty"`
	Exist                    bool             `protobuf:"varint,5,opt,name=exist,proto3" json:"exist,omitempty"`
	ContactsWhenNoPermission []string         `protobuf:"bytes,6,rep,name=contactsWhenNoPermission,proto3" json:"contactsWhenNoPermission,omitempty"`
	// contains filtered or unexported fields
}

func (*ScopeRoleData) Descriptor deprecated

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

Deprecated: Use ScopeRoleData.ProtoReflect.Descriptor instead.

func (*ScopeRoleData) GetAccess

func (x *ScopeRoleData) GetAccess() bool

func (*ScopeRoleData) GetContactsWhenNoPermission

func (x *ScopeRoleData) GetContactsWhenNoPermission() []string

func (*ScopeRoleData) GetExist

func (x *ScopeRoleData) GetExist() bool

func (*ScopeRoleData) GetPermissionList

func (x *ScopeRoleData) GetPermissionList() []*ScopeResource

func (*ScopeRoleData) GetResourceRoleList

func (x *ScopeRoleData) GetResourceRoleList() []*ScopeResource

func (*ScopeRoleData) GetRoles

func (x *ScopeRoleData) GetRoles() []string

func (*ScopeRoleData) MarshalJSON

func (m *ScopeRoleData) MarshalJSON() ([]byte, error)

ScopeRoleData implement json.Marshaler.

func (*ScopeRoleData) ProtoMessage

func (*ScopeRoleData) ProtoMessage()

func (*ScopeRoleData) ProtoReflect

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

func (*ScopeRoleData) Reset

func (x *ScopeRoleData) Reset()

func (*ScopeRoleData) String

func (x *ScopeRoleData) String() string

func (*ScopeRoleData) UnmarshalJSON

func (m *ScopeRoleData) UnmarshalJSON(b []byte) error

ScopeRoleData implement json.Marshaler.

func (*ScopeRoleData) UnmarshalURLValues

func (m *ScopeRoleData) UnmarshalURLValues(prefix string, values url.Values) error

ScopeRoleData implement urlenc.URLValuesUnmarshaler.

func (*ScopeRoleData) Validate

func (this *ScopeRoleData) Validate() error

type UnimplementedMemberServiceServer

type UnimplementedMemberServiceServer struct {
}

UnimplementedMemberServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedMemberServiceServer) CreateOrUpdateMember

func (*UnimplementedMemberServiceServer) DeleteMember

func (*UnimplementedMemberServiceServer) ListMember

func (*UnimplementedMemberServiceServer) ListMemberRoles

func (*UnimplementedMemberServiceServer) ScopeRoleAccess

Jump to

Keyboard shortcuts

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