botv1

package
v0.0.0-...-89c8abe Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bot_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "SLACK",
	}
	Bot_value = map[string]int32{
		"UNSPECIFIED": 0,
		"SLACK":       1,
	}
)

Enum value maps for Bot.

View Source
var File_config_service_bot_v1_bot_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bot

type Bot int32

We need to add bot types to this list as they are supported in clutch.

const (
	Bot_UNSPECIFIED Bot = 0
	Bot_SLACK       Bot = 1
)

func (Bot) Descriptor

func (Bot) Descriptor() protoreflect.EnumDescriptor

func (Bot) Enum

func (x Bot) Enum() *Bot

func (Bot) EnumDescriptor deprecated

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

Deprecated: Use Bot.Descriptor instead.

func (Bot) Number

func (x Bot) Number() protoreflect.EnumNumber

func (Bot) String

func (x Bot) String() string

func (Bot) Type

func (Bot) Type() protoreflect.EnumType

type Config

type Config struct {
	BotProvider Bot `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetBotProvider

func (x *Config) GetBotProvider() Bot

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Config) ValidateAll

func (m *Config) ValidateAll() error

ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.

type ConfigMultiError

type ConfigMultiError []error

ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.

func (ConfigMultiError) AllErrors

func (m ConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigMultiError) Error

func (m ConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigValidationError

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

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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