applications

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var App_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "applications.App",
	HandlerType: (*AppServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetApplicationAPIUsage",
			Handler:    _App_GetApplicationAPIUsage_Handler,
		},
		{
			MethodName: "GetBungieApplications",
			Handler:    _App_GetBungieApplications_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/applications/applications.proto",
}

App_ServiceDesc is the grpc.ServiceDesc for App 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 File_protos_applications_applications_proto protoreflect.FileDescriptor

Functions

func RegisterAppServer

func RegisterAppServer(s grpc.ServiceRegistrar, srv AppServer)

Types

type APIUsage

type APIUsage struct {
	ApiCalls          []*Series `protobuf:"bytes,1,rep,name=api_calls,json=apiCalls,proto3" json:"api_calls,omitempty"`
	ThrottledRequests []*Series `protobuf:"bytes,2,rep,name=throttled_requests,json=throttledRequests,proto3" json:"throttled_requests,omitempty"`
	// contains filtered or unexported fields
}

func (*APIUsage) Descriptor deprecated

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

Deprecated: Use APIUsage.ProtoReflect.Descriptor instead.

func (*APIUsage) GetApiCalls

func (x *APIUsage) GetApiCalls() []*Series

func (*APIUsage) GetThrottledRequests

func (x *APIUsage) GetThrottledRequests() []*Series

func (*APIUsage) ProtoMessage

func (*APIUsage) ProtoMessage()

func (*APIUsage) ProtoReflect

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

func (*APIUsage) Reset

func (x *APIUsage) Reset()

func (*APIUsage) String

func (x *APIUsage) String() string

type AppClient

type AppClient interface {
	GetApplicationAPIUsage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*APIUsage, error)
	GetBungieApplications(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ApplicationsResponse, error)
}

AppClient is the client API for App service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAppClient

func NewAppClient(cc grpc.ClientConnInterface) AppClient

type AppServer

type AppServer interface {
	GetApplicationAPIUsage(context.Context, *UsageRequest) (*APIUsage, error)
	GetBungieApplications(context.Context, *emptypb.Empty) (*ApplicationsResponse, error)
	// contains filtered or unexported methods
}

AppServer is the server API for App service. All implementations must embed UnimplementedAppServer for forward compatibility

type Application

type Application struct {
	ApplicationId             int32                   `protobuf:"varint,1,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	Name                      string                  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	RedirectUrl               string                  `protobuf:"bytes,3,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
	Link                      string                  `protobuf:"bytes,4,opt,name=link,proto3" json:"link,omitempty"`
	Scope                     int64                   `protobuf:"varint,5,opt,name=scope,proto3" json:"scope,omitempty"` // Compare scope to ApplicationScope in service package.
	Origin                    string                  `protobuf:"bytes,6,opt,name=origin,proto3" json:"origin,omitempty"`
	Status                    enums.ApplicationStatus `protobuf:"varint,7,opt,name=status,proto3,enum=enums.ApplicationStatus" json:"status,omitempty"`
	CreationDate              *timestamppb.Timestamp  `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
	StatusChanged             *timestamppb.Timestamp  `protobuf:"bytes,9,opt,name=status_changed,json=statusChanged,proto3" json:"status_changed,omitempty"`
	FirstPublished            *timestamppb.Timestamp  `protobuf:"bytes,10,opt,name=first_published,json=firstPublished,proto3" json:"first_published,omitempty"`
	Team                      []*ApplicationDeveloper `protobuf:"bytes,11,rep,name=team,proto3" json:"team,omitempty"`
	OverrideAuthorizeViewName string                  `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Application) Descriptor deprecated

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

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetApplicationId

func (x *Application) GetApplicationId() int32

func (*Application) GetCreationDate

func (x *Application) GetCreationDate() *timestamppb.Timestamp

func (*Application) GetFirstPublished

func (x *Application) GetFirstPublished() *timestamppb.Timestamp
func (x *Application) GetLink() string

func (*Application) GetName

func (x *Application) GetName() string

func (*Application) GetOrigin

func (x *Application) GetOrigin() string

func (*Application) GetOverrideAuthorizeViewName

func (x *Application) GetOverrideAuthorizeViewName() string

func (*Application) GetRedirectUrl

func (x *Application) GetRedirectUrl() string

func (*Application) GetScope

func (x *Application) GetScope() int64

func (*Application) GetStatus

func (x *Application) GetStatus() enums.ApplicationStatus

func (*Application) GetStatusChanged

func (x *Application) GetStatusChanged() *timestamppb.Timestamp

func (*Application) GetTeam

func (x *Application) GetTeam() []*ApplicationDeveloper

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect

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

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

type ApplicationDeveloper

type ApplicationDeveloper struct {
	Role           enums.DeveloperRole `protobuf:"varint,1,opt,name=role,proto3,enum=enums.DeveloperRole" json:"role,omitempty"`
	ApiEulaVersion int32               `protobuf:"varint,2,opt,name=api_eula_version,json=apiEulaVersion,proto3" json:"api_eula_version,omitempty"`
	User           *user.UserInfoCard  `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationDeveloper) Descriptor deprecated

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

Deprecated: Use ApplicationDeveloper.ProtoReflect.Descriptor instead.

func (*ApplicationDeveloper) GetApiEulaVersion

func (x *ApplicationDeveloper) GetApiEulaVersion() int32

func (*ApplicationDeveloper) GetRole

func (*ApplicationDeveloper) GetUser

func (x *ApplicationDeveloper) GetUser() *user.UserInfoCard

func (*ApplicationDeveloper) ProtoMessage

func (*ApplicationDeveloper) ProtoMessage()

func (*ApplicationDeveloper) ProtoReflect

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

func (*ApplicationDeveloper) Reset

func (x *ApplicationDeveloper) Reset()

func (*ApplicationDeveloper) String

func (x *ApplicationDeveloper) String() string

type ApplicationsResponse

type ApplicationsResponse struct {
	Applications []*Application `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationsResponse) Descriptor deprecated

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

Deprecated: Use ApplicationsResponse.ProtoReflect.Descriptor instead.

func (*ApplicationsResponse) GetApplications

func (x *ApplicationsResponse) GetApplications() []*Application

func (*ApplicationsResponse) ProtoMessage

func (*ApplicationsResponse) ProtoMessage()

func (*ApplicationsResponse) ProtoReflect

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

func (*ApplicationsResponse) Reset

func (x *ApplicationsResponse) Reset()

func (*ApplicationsResponse) String

func (x *ApplicationsResponse) String() string

type Datapoint

type Datapoint struct {
	Time  *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Count float64                `protobuf:"fixed64,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*Datapoint) Descriptor deprecated

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

Deprecated: Use Datapoint.ProtoReflect.Descriptor instead.

func (*Datapoint) GetCount

func (x *Datapoint) GetCount() float64

func (*Datapoint) GetTime

func (x *Datapoint) GetTime() *timestamppb.Timestamp

func (*Datapoint) ProtoMessage

func (*Datapoint) ProtoMessage()

func (*Datapoint) ProtoReflect

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

func (*Datapoint) Reset

func (x *Datapoint) Reset()

func (*Datapoint) String

func (x *Datapoint) String() string

type Series

type Series struct {
	Datapoints []*Datapoint `protobuf:"bytes,1,rep,name=datapoints,proto3" json:"datapoints,omitempty"`
	Target     string       `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*Series) Descriptor deprecated

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

Deprecated: Use Series.ProtoReflect.Descriptor instead.

func (*Series) GetDatapoints

func (x *Series) GetDatapoints() []*Datapoint

func (*Series) GetTarget

func (x *Series) GetTarget() string

func (*Series) ProtoMessage

func (*Series) ProtoMessage()

func (*Series) ProtoReflect

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

func (*Series) Reset

func (x *Series) Reset()

func (*Series) String

func (x *Series) String() string

type UnimplementedAppServer

type UnimplementedAppServer struct {
}

UnimplementedAppServer must be embedded to have forward compatible implementations.

func (UnimplementedAppServer) GetApplicationAPIUsage

func (UnimplementedAppServer) GetApplicationAPIUsage(context.Context, *UsageRequest) (*APIUsage, error)

func (UnimplementedAppServer) GetBungieApplications

type UnsafeAppServer

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

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

type UsageRequest

type UsageRequest struct {
	ApplicationId int32                  `protobuf:"varint,1,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	End           *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	Start         *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
	// contains filtered or unexported fields
}

func (*UsageRequest) Descriptor deprecated

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

Deprecated: Use UsageRequest.ProtoReflect.Descriptor instead.

func (*UsageRequest) GetApplicationId

func (x *UsageRequest) GetApplicationId() int32

func (*UsageRequest) GetEnd

func (x *UsageRequest) GetEnd() *timestamppb.Timestamp

func (*UsageRequest) GetStart

func (x *UsageRequest) GetStart() *timestamppb.Timestamp

func (*UsageRequest) ProtoMessage

func (*UsageRequest) ProtoMessage()

func (*UsageRequest) ProtoReflect

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

func (*UsageRequest) Reset

func (x *UsageRequest) Reset()

func (*UsageRequest) String

func (x *UsageRequest) String() string

Jump to

Keyboard shortcuts

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