service

package
v5.0.0-...-ad4f444 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package service provides protobuf "any" types used by other proto's

Index

Constants

This section is empty.

Variables

View Source
var (
	OperationType_name = map[int32]string{
		0: "OR",
		1: "AND",
	}
	OperationType_value = map[string]int32{
		"OR":  0,
		"AND": 1,
	}
)

Enum value maps for OperationType.

View Source
var (
	ResourcePolicyAction_name = map[int32]string{
		0: "ANY",
		1: "OWNER",
		2: "READ",
		3: "WRITE",
		4: "EDIT_RULES",
	}
	ResourcePolicyAction_value = map[string]int32{
		"ANY":        0,
		"OWNER":      1,
		"READ":       2,
		"WRITE":      3,
		"EDIT_RULES": 4,
	}
)

Enum value maps for ResourcePolicyAction.

View Source
var (
	ResourcePolicy_PolicyEffect_name = map[int32]string{
		0: "deny",
		1: "allow",
	}
	ResourcePolicy_PolicyEffect_value = map[string]int32{
		"deny":  0,
		"allow": 1,
	}
)

Enum value maps for ResourcePolicy_PolicyEffect.

View Source
var File_cells_service_proto protoreflect.FileDescriptor
View Source
var LoginModifier_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.LoginModifier",
	HandlerType: (*LoginModifierServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ModifyLogin",
			Handler:    _LoginModifier_ModifyLogin_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cells-service.proto",
}

LoginModifier_ServiceDesc is the grpc.ServiceDesc for LoginModifier service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ServiceManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.ServiceManager",
	HandlerType: (*ServiceManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Start",
			Handler:    _ServiceManager_Start_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _ServiceManager_Stop_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cells-service.proto",
}

ServiceManager_ServiceDesc is the grpc.ServiceDesc for ServiceManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func ReduceQueryBooleans

func ReduceQueryBooleans(results []bool, operation OperationType) bool

ReduceQueryBooleans combines multiple booleans depending on Operation Type

func RegisterLoginModifierServer

func RegisterLoginModifierServer(s grpc.ServiceRegistrar, srv LoginModifierServer)

func RegisterServiceManagerServer

func RegisterServiceManagerServer(s grpc.ServiceRegistrar, srv ServiceManagerServer)

Types

type Builder

type Builder[T Collector[T]] interface {
	Build(ctx context.Context, in T) (out T, e error)
}

Builder provides the Build function

func NewQueryBuilder

func NewQueryBuilder[T Collector[T]](e Enquirer, c ...Converter[T]) Builder[T]

NewQueryBuilder generates SQL request from object

type Collector

type Collector[T any] interface {
	Or(query interface{}, args ...interface{}) T
	Where(query interface{}, args ...interface{}) T
	Offset(offset int) T
	Limit(limit int) T
}

type Converter

type Converter[T Collector[T]] interface {
	Convert(ctx context.Context, sub *anypb.Any, in T) (out T, ok bool, err error)
}

Converter passes the convert function

type Enquirer

type Enquirer interface {
	GetSubQueries() []*anypb.Any
	GetOperation() OperationType
	GetOffset() int64
	GetLimit() int64
	GetGroupBy() int32
	GetResourcePolicyQuery() *ResourcePolicyQuery

	fmt.Stringer
}

Enquirer interface

type Error

type Error struct {
	ID      string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Code    uint32 `protobuf:"varint,2,opt,name=Code,proto3" json:"Code,omitempty"`
	Status  string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"`
	Details string `protobuf:"bytes,4,opt,name=Details,proto3" json:"Details,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() uint32

func (*Error) GetDetails

func (x *Error) GetDetails() string

func (*Error) GetID

func (x *Error) GetID() string

func (*Error) GetStatus

func (x *Error) GetStatus() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type ErrorDetail

type ErrorDetail struct {
	Key         string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	StringValue string `protobuf:"bytes,2,opt,name=StringValue,proto3" json:"StringValue,omitempty"`
	JsonValue   []byte `protobuf:"bytes,3,opt,name=JsonValue,proto3" json:"JsonValue,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorDetail) Descriptor deprecated

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

Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.

func (*ErrorDetail) GetJsonValue

func (x *ErrorDetail) GetJsonValue() []byte

func (*ErrorDetail) GetKey

func (x *ErrorDetail) GetKey() string

func (*ErrorDetail) GetStringValue

func (x *ErrorDetail) GetStringValue() string

func (*ErrorDetail) ProtoMessage

func (*ErrorDetail) ProtoMessage()

func (*ErrorDetail) ProtoReflect

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

func (*ErrorDetail) Reset

func (x *ErrorDetail) Reset()

func (*ErrorDetail) String

func (x *ErrorDetail) String() string

type ErrorSentinel

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

func (*ErrorSentinel) Descriptor deprecated

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

Deprecated: Use ErrorSentinel.ProtoReflect.Descriptor instead.

func (*ErrorSentinel) GetName

func (x *ErrorSentinel) GetName() string

func (*ErrorSentinel) ProtoMessage

func (*ErrorSentinel) ProtoMessage()

func (*ErrorSentinel) ProtoReflect

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

func (*ErrorSentinel) Reset

func (x *ErrorSentinel) Reset()

func (*ErrorSentinel) String

func (x *ErrorSentinel) String() string

type LoginModifierClient

type LoginModifierClient interface {
	ModifyLogin(ctx context.Context, in *ModifyLoginRequest, opts ...grpc.CallOption) (*ModifyLoginResponse, error)
}

LoginModifierClient is the client API for LoginModifier 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 LoginModifierServer

type LoginModifierServer interface {
	ModifyLogin(context.Context, *ModifyLoginRequest) (*ModifyLoginResponse, error)
	// contains filtered or unexported methods
}

LoginModifierServer is the server API for LoginModifier service. All implementations must embed UnimplementedLoginModifierServer for forward compatibility

type Matcher

type Matcher interface {
	// Matches tries to apply a *SingleQuery on an existing object
	Matches(object interface{}) bool
}

Matcher interface provides a way to filter idm objects with standard XXXSingleQueries.

type MatcherParser

type MatcherParser func(o *anypb.Any) (Matcher, error)

MatcherParser is a generic function to parse a protobuf into Matcher

type ModifyLoginRequest

type ModifyLoginRequest struct {
	OldLogin string            `protobuf:"bytes,1,opt,name=OldLogin,proto3" json:"OldLogin,omitempty"`
	NewLogin string            `protobuf:"bytes,2,opt,name=NewLogin,proto3" json:"NewLogin,omitempty"`
	DryRun   bool              `protobuf:"varint,3,opt,name=DryRun,proto3" json:"DryRun,omitempty"`
	Options  map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

ModifyLoginRequest is used to send a ModifyLogin call

func (*ModifyLoginRequest) Descriptor deprecated

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

Deprecated: Use ModifyLoginRequest.ProtoReflect.Descriptor instead.

func (*ModifyLoginRequest) GetDryRun

func (x *ModifyLoginRequest) GetDryRun() bool

func (*ModifyLoginRequest) GetNewLogin

func (x *ModifyLoginRequest) GetNewLogin() string

func (*ModifyLoginRequest) GetOldLogin

func (x *ModifyLoginRequest) GetOldLogin() string

func (*ModifyLoginRequest) GetOptions

func (x *ModifyLoginRequest) GetOptions() map[string]string

func (*ModifyLoginRequest) ProtoMessage

func (*ModifyLoginRequest) ProtoMessage()

func (*ModifyLoginRequest) ProtoReflect

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

func (*ModifyLoginRequest) Reset

func (x *ModifyLoginRequest) Reset()

func (*ModifyLoginRequest) String

func (x *ModifyLoginRequest) String() string

type ModifyLoginResponse

type ModifyLoginResponse struct {
	Success  bool     `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	Messages []string `protobuf:"bytes,2,rep,name=Messages,proto3" json:"Messages,omitempty"`
	// contains filtered or unexported fields
}

ModifyLoginResponse indicates if operation succeeded and adds optional message

func (*ModifyLoginResponse) Descriptor deprecated

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

Deprecated: Use ModifyLoginResponse.ProtoReflect.Descriptor instead.

func (*ModifyLoginResponse) GetMessages

func (x *ModifyLoginResponse) GetMessages() []string

func (*ModifyLoginResponse) GetSuccess

func (x *ModifyLoginResponse) GetSuccess() bool

func (*ModifyLoginResponse) ProtoMessage

func (*ModifyLoginResponse) ProtoMessage()

func (*ModifyLoginResponse) ProtoReflect

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

func (*ModifyLoginResponse) Reset

func (x *ModifyLoginResponse) Reset()

func (*ModifyLoginResponse) String

func (x *ModifyLoginResponse) String() string

type MultiMatcher

type MultiMatcher struct {
	Operation OperationType
	// contains filtered or unexported fields
}

MultiMatcher parses a Query and transform it to a recursive tree of Matches

func (*MultiMatcher) Matches

func (mm *MultiMatcher) Matches(object interface{}) bool

Matches implements the Matcher interface

func (*MultiMatcher) Parse

func (mm *MultiMatcher) Parse(q *Query, parser MatcherParser) error

Parse transforms input query into Matcher interfaces

type OperationType

type OperationType int32
const (
	OperationType_OR  OperationType = 0
	OperationType_AND OperationType = 1
)

func (OperationType) Descriptor

func (OperationType) Enum

func (x OperationType) Enum() *OperationType

func (OperationType) EnumDescriptor deprecated

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

Deprecated: Use OperationType.Descriptor instead.

func (OperationType) Number

func (OperationType) String

func (x OperationType) String() string

func (OperationType) Type

type Query

type Query struct {
	SubQueries          []*anypb.Any         `protobuf:"bytes,1,rep,name=SubQueries,proto3" json:"SubQueries,omitempty"`
	Operation           OperationType        `protobuf:"varint,2,opt,name=Operation,proto3,enum=service.OperationType" json:"Operation,omitempty"`
	ResourcePolicyQuery *ResourcePolicyQuery `protobuf:"bytes,3,opt,name=ResourcePolicyQuery,proto3" json:"ResourcePolicyQuery,omitempty"`
	Offset              int64                `protobuf:"varint,4,opt,name=Offset,proto3" json:"Offset,omitempty"`
	Limit               int64                `protobuf:"varint,5,opt,name=Limit,proto3" json:"Limit,omitempty"`
	GroupBy             int32                `protobuf:"varint,6,opt,name=groupBy,proto3" json:"groupBy,omitempty"`
	SortField           string               `protobuf:"bytes,7,opt,name=SortField,proto3" json:"SortField,omitempty"`
	SortDesc            bool                 `protobuf:"varint,8,opt,name=SortDesc,proto3" json:"SortDesc,omitempty"`
	// contains filtered or unexported fields
}

func PrepareResourcePolicyQuery

func PrepareResourcePolicyQuery(query *Query, action ResourcePolicyAction) *Query

PrepareResourcePolicyQuery reads ResourcePolicyQuery and append it as a sub-query for further Conversion.

func (*Query) Descriptor deprecated

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetGroupBy

func (x *Query) GetGroupBy() int32

func (*Query) GetLimit

func (x *Query) GetLimit() int64

func (*Query) GetOffset

func (x *Query) GetOffset() int64

func (*Query) GetOperation

func (x *Query) GetOperation() OperationType

func (*Query) GetResourcePolicyQuery

func (x *Query) GetResourcePolicyQuery() *ResourcePolicyQuery

func (*Query) GetSortDesc

func (x *Query) GetSortDesc() bool

func (*Query) GetSortField

func (x *Query) GetSortField() string

func (*Query) GetSubQueries

func (x *Query) GetSubQueries() []*anypb.Any

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

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

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type ResourcePoliciesBuilder

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

ResourcePoliciesBuilder is a helper for building ResourcePolicies lists

func NewResourcePoliciesBuilder

func NewResourcePoliciesBuilder() *ResourcePoliciesBuilder

NewResourcePoliciesBuilder creates a ResourcePoliciesBuilder

func (*ResourcePoliciesBuilder) Policies

func (r *ResourcePoliciesBuilder) Policies() []*ResourcePolicy

Policies returns internal buffer

func (*ResourcePoliciesBuilder) Reset

Reset clears internal buffer

func (*ResourcePoliciesBuilder) WithOwner

func (r *ResourcePoliciesBuilder) WithOwner(userUuid string) *ResourcePoliciesBuilder

WithOwner appends an owner policy with user uuid

func (*ResourcePoliciesBuilder) WithProfileRead

func (r *ResourcePoliciesBuilder) WithProfileRead(profile string) *ResourcePoliciesBuilder

WithProfileRead appends a read policy for profile:profileName

func (*ResourcePoliciesBuilder) WithProfileWrite

func (r *ResourcePoliciesBuilder) WithProfileWrite(profile string) *ResourcePoliciesBuilder

WithProfileWrite appends a write policy for profile:profileName

func (*ResourcePoliciesBuilder) WithResourcePolicy

func (r *ResourcePoliciesBuilder) WithResourcePolicy(policy *ResourcePolicy) *ResourcePoliciesBuilder

WithResourcePolicy appends arbitrary policy

func (*ResourcePoliciesBuilder) WithStandardUserPolicies

func (r *ResourcePoliciesBuilder) WithStandardUserPolicies(userLogin string) *ResourcePoliciesBuilder

WithStandardUserPolicies is a shortcut for WithProfileWrite(profile:admin).WithProfileRead(profile:standard).WithUserWrite(userLogin)

func (*ResourcePoliciesBuilder) WithUserRead

func (r *ResourcePoliciesBuilder) WithUserRead(login string) *ResourcePoliciesBuilder

WithUserRead appends a read policy for this user:login

func (*ResourcePoliciesBuilder) WithUserWrite

func (r *ResourcePoliciesBuilder) WithUserWrite(login string) *ResourcePoliciesBuilder

WithUserWrite appends a write policy for user:login

type ResourcePolicy

type ResourcePolicy struct {
	Id             int64                       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"column:id;autoIncrement;"`
	Resource       string                      `` /* 132-byte string literal not displayed */
	Action         ResourcePolicyAction        `` /* 191-byte string literal not displayed */
	Subject        string                      `` /* 138-byte string literal not displayed */
	Effect         ResourcePolicy_PolicyEffect `` /* 168-byte string literal not displayed */
	JsonConditions string                      `protobuf:"bytes,6,opt,name=JsonConditions,proto3" json:"JsonConditions,omitempty" gorm:"column:conditions;"`
	// contains filtered or unexported fields
}

func (*ResourcePolicy) Descriptor deprecated

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

Deprecated: Use ResourcePolicy.ProtoReflect.Descriptor instead.

func (*ResourcePolicy) GetAction

func (x *ResourcePolicy) GetAction() ResourcePolicyAction

func (*ResourcePolicy) GetEffect

func (*ResourcePolicy) GetId

func (x *ResourcePolicy) GetId() int64

func (*ResourcePolicy) GetJsonConditions

func (x *ResourcePolicy) GetJsonConditions() string

func (*ResourcePolicy) GetResource

func (x *ResourcePolicy) GetResource() string

func (*ResourcePolicy) GetSubject

func (x *ResourcePolicy) GetSubject() string

func (*ResourcePolicy) ProtoMessage

func (*ResourcePolicy) ProtoMessage()

func (*ResourcePolicy) ProtoReflect

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

func (*ResourcePolicy) Reset

func (x *ResourcePolicy) Reset()

func (*ResourcePolicy) String

func (x *ResourcePolicy) String() string

type ResourcePolicyAction

type ResourcePolicyAction int32
const (
	ResourcePolicyAction_ANY        ResourcePolicyAction = 0
	ResourcePolicyAction_OWNER      ResourcePolicyAction = 1
	ResourcePolicyAction_READ       ResourcePolicyAction = 2
	ResourcePolicyAction_WRITE      ResourcePolicyAction = 3
	ResourcePolicyAction_EDIT_RULES ResourcePolicyAction = 4
)

func (ResourcePolicyAction) Descriptor

func (ResourcePolicyAction) Enum

func (ResourcePolicyAction) EnumDescriptor deprecated

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

Deprecated: Use ResourcePolicyAction.Descriptor instead.

func (ResourcePolicyAction) Number

func (ResourcePolicyAction) String

func (x ResourcePolicyAction) String() string

func (ResourcePolicyAction) Type

type ResourcePolicyQuery

type ResourcePolicyQuery struct {
	Subjects       []string             `protobuf:"bytes,1,rep,name=Subjects,proto3" json:"Subjects,omitempty"`
	Empty          bool                 `protobuf:"varint,2,opt,name=Empty,proto3" json:"Empty,omitempty"`
	Any            bool                 `protobuf:"varint,3,opt,name=Any,proto3" json:"Any,omitempty"`
	LeftIdentifier string               `protobuf:"bytes,4,opt,name=LeftIdentifier,proto3" json:"LeftIdentifier,omitempty"`
	Action         ResourcePolicyAction `protobuf:"varint,5,opt,name=Action,proto3,enum=service.ResourcePolicyAction" json:"Action,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourcePolicyQuery) Descriptor deprecated

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

Deprecated: Use ResourcePolicyQuery.ProtoReflect.Descriptor instead.

func (*ResourcePolicyQuery) GetAction

func (*ResourcePolicyQuery) GetAny

func (x *ResourcePolicyQuery) GetAny() bool

func (*ResourcePolicyQuery) GetEmpty

func (x *ResourcePolicyQuery) GetEmpty() bool

func (*ResourcePolicyQuery) GetLeftIdentifier

func (x *ResourcePolicyQuery) GetLeftIdentifier() string

func (*ResourcePolicyQuery) GetSubjects

func (x *ResourcePolicyQuery) GetSubjects() []string

func (*ResourcePolicyQuery) ProtoMessage

func (*ResourcePolicyQuery) ProtoMessage()

func (*ResourcePolicyQuery) ProtoReflect

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

func (*ResourcePolicyQuery) Reset

func (x *ResourcePolicyQuery) Reset()

func (*ResourcePolicyQuery) String

func (x *ResourcePolicyQuery) String() string

type ResourcePolicy_PolicyEffect

type ResourcePolicy_PolicyEffect int32
const (
	ResourcePolicy_deny  ResourcePolicy_PolicyEffect = 0
	ResourcePolicy_allow ResourcePolicy_PolicyEffect = 1
)

func (ResourcePolicy_PolicyEffect) Descriptor

func (ResourcePolicy_PolicyEffect) Enum

func (ResourcePolicy_PolicyEffect) EnumDescriptor deprecated

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

Deprecated: Use ResourcePolicy_PolicyEffect.Descriptor instead.

func (ResourcePolicy_PolicyEffect) Number

func (ResourcePolicy_PolicyEffect) String

func (ResourcePolicy_PolicyEffect) Type

type ServiceManagerClient

type ServiceManagerClient interface {
	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
	Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
}

ServiceManagerClient is the client API for ServiceManager 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 ServiceManagerServer

type ServiceManagerServer interface {
	Start(context.Context, *StartRequest) (*StartResponse, error)
	Stop(context.Context, *StopRequest) (*StopResponse, error)
	// contains filtered or unexported methods
}

ServiceManagerServer is the server API for ServiceManager service. All implementations must embed UnimplementedServiceManagerServer for forward compatibility

type StartRequest

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

func (*StartRequest) Descriptor deprecated

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

Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.

func (*StartRequest) GetName

func (x *StartRequest) GetName() string

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) ProtoReflect

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

func (*StartRequest) Reset

func (x *StartRequest) Reset()

func (*StartRequest) String

func (x *StartRequest) String() string

type StartResponse

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

func (*StartResponse) Descriptor deprecated

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

Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.

func (*StartResponse) GetOK

func (x *StartResponse) GetOK() bool

func (*StartResponse) ProtoMessage

func (*StartResponse) ProtoMessage()

func (*StartResponse) ProtoReflect

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

func (*StartResponse) Reset

func (x *StartResponse) Reset()

func (*StartResponse) String

func (x *StartResponse) String() string

type StopRequest

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

func (*StopRequest) Descriptor deprecated

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

Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.

func (*StopRequest) GetName

func (x *StopRequest) GetName() string

func (*StopRequest) ProtoMessage

func (*StopRequest) ProtoMessage()

func (*StopRequest) ProtoReflect

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

func (*StopRequest) Reset

func (x *StopRequest) Reset()

func (*StopRequest) String

func (x *StopRequest) String() string

type StopResponse

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

func (*StopResponse) Descriptor deprecated

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

Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.

func (*StopResponse) GetOK

func (x *StopResponse) GetOK() bool

func (*StopResponse) ProtoMessage

func (*StopResponse) ProtoMessage()

func (*StopResponse) ProtoReflect

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

func (*StopResponse) Reset

func (x *StopResponse) Reset()

func (*StopResponse) String

func (x *StopResponse) String() string

type UnimplementedLoginModifierServer

type UnimplementedLoginModifierServer struct {
}

UnimplementedLoginModifierServer must be embedded to have forward compatible implementations.

func (UnimplementedLoginModifierServer) ModifyLogin

type UnimplementedServiceManagerServer

type UnimplementedServiceManagerServer struct {
}

UnimplementedServiceManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceManagerServer) Start

func (UnimplementedServiceManagerServer) Stop

type UnsafeLoginModifierServer

type UnsafeLoginModifierServer interface {
	// contains filtered or unexported methods
}

UnsafeLoginModifierServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoginModifierServer will result in compilation errors.

type UnsafeServiceManagerServer

type UnsafeServiceManagerServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceManagerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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