v2

package
v0.0.0-...-d36ff20 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Oauth2_AuthCodeURL_FullMethodName = "/palm.google.v1.Oauth2/AuthCodeURL"
	Oauth2_SignIn_FullMethodName      = "/palm.google.v1.Oauth2/SignIn"
)

Variables

View Source
var File_google_proto protoreflect.FileDescriptor
View Source
var Oauth2_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "palm.google.v1.Oauth2",
	HandlerType: (*Oauth2Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AuthCodeURL",
			Handler:    _Oauth2_AuthCodeURL_Handler,
		},
		{
			MethodName: "SignIn",
			Handler:    _Oauth2_SignIn_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google.proto",
}

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

Functions

func RegisterOauth2Server

func RegisterOauth2Server(s grpc.ServiceRegistrar, srv Oauth2Server)

Types

type Oauth2AuthCodeURLRequest

type Oauth2AuthCodeURLRequest struct {
	Subject *string `protobuf:"bytes,1,opt,name=subject,proto3,oneof" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

func (*Oauth2AuthCodeURLRequest) Descriptor deprecated

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

Deprecated: Use Oauth2AuthCodeURLRequest.ProtoReflect.Descriptor instead.

func (*Oauth2AuthCodeURLRequest) GetSubject

func (x *Oauth2AuthCodeURLRequest) GetSubject() string

func (*Oauth2AuthCodeURLRequest) ProtoMessage

func (*Oauth2AuthCodeURLRequest) ProtoMessage()

func (*Oauth2AuthCodeURLRequest) ProtoReflect

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

func (*Oauth2AuthCodeURLRequest) Reset

func (x *Oauth2AuthCodeURLRequest) Reset()

func (*Oauth2AuthCodeURLRequest) String

func (x *Oauth2AuthCodeURLRequest) String() string

type Oauth2AuthCodeURLResponse

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

func (*Oauth2AuthCodeURLResponse) Descriptor deprecated

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

Deprecated: Use Oauth2AuthCodeURLResponse.ProtoReflect.Descriptor instead.

func (*Oauth2AuthCodeURLResponse) GetUrl

func (x *Oauth2AuthCodeURLResponse) GetUrl() string

func (*Oauth2AuthCodeURLResponse) ProtoMessage

func (*Oauth2AuthCodeURLResponse) ProtoMessage()

func (*Oauth2AuthCodeURLResponse) ProtoReflect

func (*Oauth2AuthCodeURLResponse) Reset

func (x *Oauth2AuthCodeURLResponse) Reset()

func (*Oauth2AuthCodeURLResponse) String

func (x *Oauth2AuthCodeURLResponse) String() string

type Oauth2Client

type Oauth2Client interface {
	AuthCodeURL(ctx context.Context, in *Oauth2AuthCodeURLRequest, opts ...grpc.CallOption) (*Oauth2AuthCodeURLResponse, error)
	SignIn(ctx context.Context, in *Oauth2SignInRequest, opts ...grpc.CallOption) (*Oauth2SignInResponse, error)
}

Oauth2Client is the client API for Oauth2 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.

func NewOauth2Client

func NewOauth2Client(cc grpc.ClientConnInterface) Oauth2Client

type Oauth2Server

type Oauth2Server interface {
	AuthCodeURL(context.Context, *Oauth2AuthCodeURLRequest) (*Oauth2AuthCodeURLResponse, error)
	SignIn(context.Context, *Oauth2SignInRequest) (*Oauth2SignInResponse, error)
	// contains filtered or unexported methods
}

Oauth2Server is the server API for Oauth2 service. All implementations must embed UnimplementedOauth2Server for forward compatibility

type Oauth2SignInRequest

type Oauth2SignInRequest struct {
	Code  string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Oauth2SignInRequest) Descriptor deprecated

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

Deprecated: Use Oauth2SignInRequest.ProtoReflect.Descriptor instead.

func (*Oauth2SignInRequest) GetCode

func (x *Oauth2SignInRequest) GetCode() string

func (*Oauth2SignInRequest) GetState

func (x *Oauth2SignInRequest) GetState() string

func (*Oauth2SignInRequest) ProtoMessage

func (*Oauth2SignInRequest) ProtoMessage()

func (*Oauth2SignInRequest) ProtoReflect

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

func (*Oauth2SignInRequest) Reset

func (x *Oauth2SignInRequest) Reset()

func (*Oauth2SignInRequest) String

func (x *Oauth2SignInRequest) String() string

type Oauth2SignInResponse

type Oauth2SignInResponse struct {
	OpenId  *Oauth2SignInResponse_OpenId `protobuf:"bytes,1,opt,name=open_id,json=openId,proto3" json:"open_id,omitempty"`
	Token   []byte                       `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Subject *string                      `protobuf:"bytes,99,opt,name=subject,proto3,oneof" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

func (*Oauth2SignInResponse) Descriptor deprecated

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

Deprecated: Use Oauth2SignInResponse.ProtoReflect.Descriptor instead.

func (*Oauth2SignInResponse) GetOpenId

func (*Oauth2SignInResponse) GetSubject

func (x *Oauth2SignInResponse) GetSubject() string

func (*Oauth2SignInResponse) GetToken

func (x *Oauth2SignInResponse) GetToken() []byte

func (*Oauth2SignInResponse) ProtoMessage

func (*Oauth2SignInResponse) ProtoMessage()

func (*Oauth2SignInResponse) ProtoReflect

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

func (*Oauth2SignInResponse) Reset

func (x *Oauth2SignInResponse) Reset()

func (*Oauth2SignInResponse) String

func (x *Oauth2SignInResponse) String() string

type Oauth2SignInResponse_OpenId

type Oauth2SignInResponse_OpenId struct {
	Subject       string  `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Name          *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Email         *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
	EmailVerified bool    `protobuf:"varint,4,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
	Picture       *string `protobuf:"bytes,7,opt,name=picture,proto3,oneof" json:"picture,omitempty"`
	Locale        *string `protobuf:"bytes,8,opt,name=locale,proto3,oneof" json:"locale,omitempty"`
	Profile       *string `protobuf:"bytes,9,opt,name=profile,proto3,oneof" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*Oauth2SignInResponse_OpenId) Descriptor deprecated

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

Deprecated: Use Oauth2SignInResponse_OpenId.ProtoReflect.Descriptor instead.

func (*Oauth2SignInResponse_OpenId) GetEmail

func (x *Oauth2SignInResponse_OpenId) GetEmail() string

func (*Oauth2SignInResponse_OpenId) GetEmailVerified

func (x *Oauth2SignInResponse_OpenId) GetEmailVerified() bool

func (*Oauth2SignInResponse_OpenId) GetLocale

func (x *Oauth2SignInResponse_OpenId) GetLocale() string

func (*Oauth2SignInResponse_OpenId) GetName

func (x *Oauth2SignInResponse_OpenId) GetName() string

func (*Oauth2SignInResponse_OpenId) GetPicture

func (x *Oauth2SignInResponse_OpenId) GetPicture() string

func (*Oauth2SignInResponse_OpenId) GetProfile

func (x *Oauth2SignInResponse_OpenId) GetProfile() string

func (*Oauth2SignInResponse_OpenId) GetSubject

func (x *Oauth2SignInResponse_OpenId) GetSubject() string

func (*Oauth2SignInResponse_OpenId) ProtoMessage

func (*Oauth2SignInResponse_OpenId) ProtoMessage()

func (*Oauth2SignInResponse_OpenId) ProtoReflect

func (*Oauth2SignInResponse_OpenId) Reset

func (x *Oauth2SignInResponse_OpenId) Reset()

func (*Oauth2SignInResponse_OpenId) String

func (x *Oauth2SignInResponse_OpenId) String() string

type UnimplementedOauth2Server

type UnimplementedOauth2Server struct {
}

UnimplementedOauth2Server must be embedded to have forward compatible implementations.

func (UnimplementedOauth2Server) SignIn

type UnsafeOauth2Server

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

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

Jump to

Keyboard shortcuts

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