examples

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GrantType_name = map[int32]string{
		0: "NULL",
		1: "UNKNOWN",
		2: "PASSWORD",
		3: "LDAP",
		4: "REFRESH",
		5: "ACCESS",
		6: "CLIENT",
		7: "AUTH_CODE",
		8: "IMPLICIT",
	}
	GrantType_value = map[string]int32{
		"NULL":      0,
		"UNKNOWN":   1,
		"PASSWORD":  2,
		"LDAP":      3,
		"REFRESH":   4,
		"ACCESS":    5,
		"CLIENT":    6,
		"AUTH_CODE": 7,
		"IMPLICIT":  8,
	}
)

Enum value maps for GrantType.

View Source
var File_pb_examples_example_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GrantType

type GrantType int32
const (
	GrantType_NULL      GrantType = 0
	GrantType_UNKNOWN   GrantType = 1
	GrantType_PASSWORD  GrantType = 2
	GrantType_LDAP      GrantType = 3
	GrantType_REFRESH   GrantType = 4
	GrantType_ACCESS    GrantType = 5
	GrantType_CLIENT    GrantType = 6
	GrantType_AUTH_CODE GrantType = 7
	GrantType_IMPLICIT  GrantType = 8
)

func ParseGrantTypeFromString added in v1.3.4

func ParseGrantTypeFromString(str string) (GrantType, error)

ParseGrantTypeFromString Parse GrantType from string

func (GrantType) Descriptor

func (GrantType) Descriptor() protoreflect.EnumDescriptor

func (GrantType) Enum

func (x GrantType) Enum() *GrantType

func (GrantType) EnumDescriptor deprecated

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

Deprecated: Use GrantType.Descriptor instead.

func (GrantType) Equal added in v1.3.4

func (t GrantType) Equal(target GrantType) bool

Equal type compare

func (GrantType) IsIn added in v1.3.4

func (t GrantType) IsIn(targets ...GrantType) bool

IsIn todo

func (GrantType) MarshalJSON added in v1.3.4

func (t GrantType) MarshalJSON() ([]byte, error)

MarshalJSON todo

func (GrantType) Number

func (x GrantType) Number() protoreflect.EnumNumber

func (GrantType) String

func (x GrantType) String() string

func (GrantType) Type

func (*GrantType) UnmarshalJSON added in v1.3.4

func (t *GrantType) UnmarshalJSON(b []byte) error

UnmarshalJSON todo

type Http

type Http struct {
	Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty" validate:"oneof=http https"`
	// version_default is the same as version_update
	VersionDefault string    `` /* 135-byte string literal not displayed */
	VersionUpdate  string    `protobuf:"bytes,3,opt,name=version_update,json=VersionUpdate,proto3" json:"version_with_update" validate:"gte=0,lte=130"`
	VersionReplace string    `protobuf:"bytes,4,opt,name=version_replace,json=VersionReplace,proto3" json:"version_with_replace" validate:"gte=0,lte=130"`
	Url            *Http_Url `protobuf:"bytes,5,opt,name=url,json=Url,proto3" json:"url_tag,omitempty"`
	VersionSkip    string    `protobuf:"bytes,6,opt,name=version_skip,json=versionSkip,proto3" json:"-" bson:"-"`
	// contains filtered or unexported fields
}

func (*Http) Descriptor deprecated

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

Deprecated: Use Http.ProtoReflect.Descriptor instead.

func (*Http) GetProtocol

func (x *Http) GetProtocol() string

func (*Http) GetUrl

func (x *Http) GetUrl() *Http_Url

func (*Http) GetVersionDefault

func (x *Http) GetVersionDefault() string

func (*Http) GetVersionReplace

func (x *Http) GetVersionReplace() string

func (*Http) GetVersionSkip

func (x *Http) GetVersionSkip() string

func (*Http) GetVersionUpdate

func (x *Http) GetVersionUpdate() string

func (*Http) ProtoMessage

func (*Http) ProtoMessage()

func (*Http) ProtoReflect

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

func (*Http) Reset

func (x *Http) Reset()

func (*Http) String

func (x *Http) String() string

type Http_Url

type Http_Url struct {
	Scheme string `protobuf:"bytes,1,opt,name=scheme,json=Scheme,proto3" json:"schema_tag,omitempty"` //  string scheme = 1[json_name = "Scheme"];
	// contains filtered or unexported fields
}

func (*Http_Url) Descriptor deprecated

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

Deprecated: Use Http_Url.ProtoReflect.Descriptor instead.

func (*Http_Url) GetScheme

func (x *Http_Url) GetScheme() string

func (*Http_Url) ProtoMessage

func (*Http_Url) ProtoMessage()

func (*Http_Url) ProtoReflect

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

func (*Http_Url) Reset

func (x *Http_Url) Reset()

func (*Http_Url) String

func (x *Http_Url) String() string

Jump to

Keyboard shortcuts

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