Documentation ¶
Overview ¶
Package proto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMilpacServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMilpacServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MilpacServiceClient) error
- func RegisterMilpacServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMilpacServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MilpacServiceServer) error
- func RegisterMilpacServiceServer(s grpc.ServiceRegistrar, srv MilpacServiceServer)
- type Award
- func (*Award) Descriptor() ([]byte, []int)deprecated
- func (x *Award) GetAwardDate() string
- func (x *Award) GetAwardDetails() string
- func (x *Award) GetAwardImageUrl() string
- func (x *Award) GetAwardName() string
- func (*Award) ProtoMessage()
- func (x *Award) ProtoReflect() protoreflect.Message
- func (x *Award) Reset()
- func (x *Award) String() string
- type KeycloakIdRequest
- func (*KeycloakIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeycloakIdRequest) GetKeycloakId() string
- func (*KeycloakIdRequest) ProtoMessage()
- func (x *KeycloakIdRequest) ProtoReflect() protoreflect.Message
- func (x *KeycloakIdRequest) Reset()
- func (x *KeycloakIdRequest) String() string
- type MilpacServiceClient
- type MilpacServiceServer
- type Position
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetAwards() []*Award
- func (x *Profile) GetJoinDate() string
- func (x *Profile) GetKeycloakId() string
- func (x *Profile) GetPrimary() *Position
- func (x *Profile) GetPromotionDate() string
- func (x *Profile) GetRank() *Rank
- func (x *Profile) GetRealName() string
- func (x *Profile) GetRecords() []*Record
- func (x *Profile) GetRoster() RosterType
- func (x *Profile) GetSecondaries() []*Position
- func (x *Profile) GetUniformUrl() string
- func (x *Profile) GetUser() *User
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type ProfileRequest
- func (*ProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileRequest) GetUserId() uint64
- func (x *ProfileRequest) GetUsername() string
- func (*ProfileRequest) ProtoMessage()
- func (x *ProfileRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileRequest) Reset()
- func (x *ProfileRequest) String() string
- type Rank
- func (*Rank) Descriptor() ([]byte, []int)deprecated
- func (x *Rank) GetRankFull() string
- func (x *Rank) GetRankId() uint64
- func (x *Rank) GetRankImageUrl() string
- func (x *Rank) GetRankShort() string
- func (*Rank) ProtoMessage()
- func (x *Rank) ProtoReflect() protoreflect.Message
- func (x *Rank) Reset()
- func (x *Rank) String() string
- type RankType
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetRecordDate() string
- func (x *Record) GetRecordDetails() string
- func (x *Record) GetRecordType() RecordType
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type RecordType
- type Roster
- type RosterRequest
- type RosterType
- type Thingy
- type UnimplementedMilpacServiceServer
- func (UnimplementedMilpacServiceServer) GetProfile(context.Context, *ProfileRequest) (*Profile, error)
- func (UnimplementedMilpacServiceServer) GetRoster(context.Context, *RosterRequest) (*Roster, error)
- func (UnimplementedMilpacServiceServer) GetUserViaKeycloakId(context.Context, *KeycloakIdRequest) (*Profile, error)
- type UnsafeMilpacServiceServer
- type User
Constants ¶
This section is empty.
Variables ¶
var ( RosterType_name = map[int32]string{ 0: "ROSTER_TYPE_UNSPECIFIED", 1: "ROSTER_TYPE_COMBAT", 2: "ROSTER_TYPE_RESERVE", 3: "ROSTER_TYPE_ELOA", 4: "ROSTER_TYPE_WALL_OF_HONOR", 5: "ROSTER_TYPE_ARLINGTON", 6: "ROSTER_TYPE_PAST_MEMBERS", } RosterType_value = map[string]int32{ "ROSTER_TYPE_UNSPECIFIED": 0, "ROSTER_TYPE_COMBAT": 1, "ROSTER_TYPE_RESERVE": 2, "ROSTER_TYPE_ELOA": 3, "ROSTER_TYPE_WALL_OF_HONOR": 4, "ROSTER_TYPE_ARLINGTON": 5, "ROSTER_TYPE_PAST_MEMBERS": 6, } )
Enum value maps for RosterType.
var ( RecordType_name = map[int32]string{ 0: "RECORD_TYPE_UNSPECIFIED", 1: "RECORD_TYPE_PROMOTION", 2: "RECORD_TYPE_OPERATION", 3: "RECORD_TYPE_TRANSFER", 4: "RECORD_TYPE_DISCIPLINARY", 5: "RECORD_TYPE_DISCHARGE", 6: "RECORD_TYPE_ASSIGNMENT", 7: "RECORD_TYPE_NAME_CHANGE", 8: "RECORD_TYPE_ELOA", 9: "RECORD_TYPE_GRADUATION", } RecordType_value = map[string]int32{ "RECORD_TYPE_UNSPECIFIED": 0, "RECORD_TYPE_PROMOTION": 1, "RECORD_TYPE_OPERATION": 2, "RECORD_TYPE_TRANSFER": 3, "RECORD_TYPE_DISCIPLINARY": 4, "RECORD_TYPE_DISCHARGE": 5, "RECORD_TYPE_ASSIGNMENT": 6, "RECORD_TYPE_NAME_CHANGE": 7, "RECORD_TYPE_ELOA": 8, "RECORD_TYPE_GRADUATION": 9, } )
Enum value maps for RecordType.
var ( RankType_name = map[int32]string{ 0: "RANK_TYPE_UNSPECIFIED", 1: "RANK_TYPE_GOA", 2: "RANK_TYPE_GEN", 3: "RANK_TYPE_LTG", 4: "RANK_TYPE_MG", 5: "RANK_TYPE_BG", 6: "RANK_TYPE_COL", 7: "RANK_TYPE_LTC", 8: "RANK_TYPE_MAJ", 9: "RANK_TYPE_CPT", 10: "RANK_TYPE_1LT", 11: "RANK_TYPE_2LT", 12: "RANK_TYPE_CSM", 13: "RANK_TYPE_SGM", 14: "RANK_TYPE_1SG", 15: "RANK_TYPE_MSG", 16: "RANK_TYPE_SFC", 17: "RANK_TYPE_SSG", 18: "RANK_TYPE_SGT", 19: "RANK_TYPE_CPL", 20: "RANK_TYPE_SPC", 21: "RANK_TYPE_PFC", 22: "RANK_TYPE_PVT", 23: "RANK_TYPE_RCT", 26: "RANK_TYPE_CW5", 27: "RANK_TYPE_CW4", 28: "RANK_TYPE_CW3", 29: "RANK_TYPE_CW2", 30: "RANK_TYPE_WO1", 31: "RANK_TYPE_AR", } RankType_value = map[string]int32{ "RANK_TYPE_UNSPECIFIED": 0, "RANK_TYPE_GOA": 1, "RANK_TYPE_GEN": 2, "RANK_TYPE_LTG": 3, "RANK_TYPE_MG": 4, "RANK_TYPE_BG": 5, "RANK_TYPE_COL": 6, "RANK_TYPE_LTC": 7, "RANK_TYPE_MAJ": 8, "RANK_TYPE_CPT": 9, "RANK_TYPE_1LT": 10, "RANK_TYPE_2LT": 11, "RANK_TYPE_CSM": 12, "RANK_TYPE_SGM": 13, "RANK_TYPE_1SG": 14, "RANK_TYPE_MSG": 15, "RANK_TYPE_SFC": 16, "RANK_TYPE_SSG": 17, "RANK_TYPE_SGT": 18, "RANK_TYPE_CPL": 19, "RANK_TYPE_SPC": 20, "RANK_TYPE_PFC": 21, "RANK_TYPE_PVT": 22, "RANK_TYPE_RCT": 23, "RANK_TYPE_CW5": 26, "RANK_TYPE_CW4": 27, "RANK_TYPE_CW3": 28, "RANK_TYPE_CW2": 29, "RANK_TYPE_WO1": 30, "RANK_TYPE_AR": 31, } )
Enum value maps for RankType.
var File_milpacs_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMilpacServiceHandler ¶
func RegisterMilpacServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMilpacServiceHandler registers the http handlers for service MilpacService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMilpacServiceHandlerClient ¶
func RegisterMilpacServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MilpacServiceClient) error
RegisterMilpacServiceHandlerClient registers the http handlers for service MilpacService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MilpacServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MilpacServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MilpacServiceClient" to call the correct interceptors.
func RegisterMilpacServiceHandlerFromEndpoint ¶
func RegisterMilpacServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMilpacServiceHandlerFromEndpoint is same as RegisterMilpacServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMilpacServiceHandlerServer ¶
func RegisterMilpacServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MilpacServiceServer) error
RegisterMilpacServiceHandlerServer registers the http handlers for service MilpacService to "mux". UnaryRPC :call MilpacServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMilpacServiceHandlerFromEndpoint instead.
func RegisterMilpacServiceServer ¶
func RegisterMilpacServiceServer(s grpc.ServiceRegistrar, srv MilpacServiceServer)
Types ¶
type Award ¶
type Award struct { AwardDetails string `protobuf:"bytes,1,opt,name=award_details,json=awardDetails,proto3" json:"award_details,omitempty"` AwardName string `protobuf:"bytes,2,opt,name=award_name,json=awardName,proto3" json:"award_name,omitempty"` AwardDate string `protobuf:"bytes,3,opt,name=award_date,json=awardDate,proto3" json:"award_date,omitempty"` AwardImageUrl string `protobuf:"bytes,4,opt,name=award_image_url,json=awardImageUrl,proto3" json:"award_image_url,omitempty"` // contains filtered or unexported fields }
func (*Award) Descriptor
deprecated
func (*Award) GetAwardDate ¶
func (*Award) GetAwardDetails ¶
func (*Award) GetAwardImageUrl ¶
func (*Award) GetAwardName ¶
func (*Award) ProtoMessage ¶
func (*Award) ProtoMessage()
func (*Award) ProtoReflect ¶
func (x *Award) ProtoReflect() protoreflect.Message
type KeycloakIdRequest ¶
type KeycloakIdRequest struct { KeycloakId string `protobuf:"bytes,1,opt,name=keycloak_id,json=keycloakId,proto3" json:"keycloak_id,omitempty"` // contains filtered or unexported fields }
func (*KeycloakIdRequest) Descriptor
deprecated
func (*KeycloakIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeycloakIdRequest.ProtoReflect.Descriptor instead.
func (*KeycloakIdRequest) GetKeycloakId ¶
func (x *KeycloakIdRequest) GetKeycloakId() string
func (*KeycloakIdRequest) ProtoMessage ¶
func (*KeycloakIdRequest) ProtoMessage()
func (*KeycloakIdRequest) ProtoReflect ¶
func (x *KeycloakIdRequest) ProtoReflect() protoreflect.Message
func (*KeycloakIdRequest) Reset ¶
func (x *KeycloakIdRequest) Reset()
func (*KeycloakIdRequest) String ¶
func (x *KeycloakIdRequest) String() string
type MilpacServiceClient ¶
type MilpacServiceClient interface { GetProfile(ctx context.Context, in *ProfileRequest, opts ...grpc.CallOption) (*Profile, error) GetRoster(ctx context.Context, in *RosterRequest, opts ...grpc.CallOption) (*Roster, error) GetUserViaKeycloakId(ctx context.Context, in *KeycloakIdRequest, opts ...grpc.CallOption) (*Profile, error) }
MilpacServiceClient is the client API for MilpacService 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 NewMilpacServiceClient ¶
func NewMilpacServiceClient(cc grpc.ClientConnInterface) MilpacServiceClient
type MilpacServiceServer ¶
type MilpacServiceServer interface { GetProfile(context.Context, *ProfileRequest) (*Profile, error) GetRoster(context.Context, *RosterRequest) (*Roster, error) GetUserViaKeycloakId(context.Context, *KeycloakIdRequest) (*Profile, error) }
MilpacServiceServer is the server API for MilpacService service. All implementations should embed UnimplementedMilpacServiceServer for forward compatibility
type Position ¶
type Position struct { PositionTitle string `protobuf:"bytes,1,opt,name=position_title,json=positionTitle,proto3" json:"position_title,omitempty"` PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) GetPositionId ¶
func (*Position) GetPositionTitle ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type Profile ¶
type Profile struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Rank *Rank `protobuf:"bytes,2,opt,name=rank,proto3" json:"rank,omitempty"` RealName string `protobuf:"bytes,3,opt,name=real_name,json=realName,proto3" json:"real_name,omitempty"` UniformUrl string `protobuf:"bytes,4,opt,name=uniform_url,json=uniformUrl,proto3" json:"uniform_url,omitempty"` Roster RosterType `protobuf:"varint,5,opt,name=roster,proto3,enum=proto.RosterType" json:"roster,omitempty"` Primary *Position `protobuf:"bytes,6,opt,name=primary,proto3" json:"primary,omitempty"` Secondaries []*Position `protobuf:"bytes,7,rep,name=secondaries,proto3" json:"secondaries,omitempty"` Records []*Record `protobuf:"bytes,8,rep,name=records,proto3" json:"records,omitempty"` Awards []*Award `protobuf:"bytes,9,rep,name=awards,proto3" json:"awards,omitempty"` JoinDate string `protobuf:"bytes,10,opt,name=join_date,json=joinDate,proto3" json:"join_date,omitempty"` PromotionDate string `protobuf:"bytes,11,opt,name=promotion_date,json=promotionDate,proto3" json:"promotion_date,omitempty"` KeycloakId string `protobuf:"bytes,12,opt,name=keycloak_id,json=keycloakId,proto3" json:"keycloak_id,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetJoinDate ¶
func (*Profile) GetKeycloakId ¶
func (*Profile) GetPrimary ¶
func (*Profile) GetPromotionDate ¶
func (*Profile) GetRealName ¶
func (*Profile) GetRecords ¶
func (*Profile) GetRoster ¶
func (x *Profile) GetRoster() RosterType
func (*Profile) GetSecondaries ¶
func (*Profile) GetUniformUrl ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type ProfileRequest ¶
type ProfileRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*ProfileRequest) Descriptor
deprecated
func (*ProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileRequest.ProtoReflect.Descriptor instead.
func (*ProfileRequest) GetUserId ¶
func (x *ProfileRequest) GetUserId() uint64
func (*ProfileRequest) GetUsername ¶
func (x *ProfileRequest) GetUsername() string
func (*ProfileRequest) ProtoMessage ¶
func (*ProfileRequest) ProtoMessage()
func (*ProfileRequest) ProtoReflect ¶
func (x *ProfileRequest) ProtoReflect() protoreflect.Message
func (*ProfileRequest) Reset ¶
func (x *ProfileRequest) Reset()
func (*ProfileRequest) String ¶
func (x *ProfileRequest) String() string
type Rank ¶
type Rank struct { RankShort string `protobuf:"bytes,1,opt,name=rank_short,json=rankShort,proto3" json:"rank_short,omitempty"` RankFull string `protobuf:"bytes,2,opt,name=rank_full,json=rankFull,proto3" json:"rank_full,omitempty"` RankImageUrl string `protobuf:"bytes,3,opt,name=rank_image_url,json=rankImageUrl,proto3" json:"rank_image_url,omitempty"` RankId uint64 `protobuf:"varint,4,opt,name=rank_id,json=rankId,proto3" json:"rank_id,omitempty"` // contains filtered or unexported fields }
func (*Rank) Descriptor
deprecated
func (*Rank) GetRankFull ¶
func (*Rank) GetRankImageUrl ¶
func (*Rank) GetRankShort ¶
func (*Rank) ProtoMessage ¶
func (*Rank) ProtoMessage()
func (*Rank) ProtoReflect ¶
func (x *Rank) ProtoReflect() protoreflect.Message
type RankType ¶
type RankType int32
const ( RankType_RANK_TYPE_UNSPECIFIED RankType = 0 RankType_RANK_TYPE_GOA RankType = 1 RankType_RANK_TYPE_GEN RankType = 2 RankType_RANK_TYPE_LTG RankType = 3 RankType_RANK_TYPE_MG RankType = 4 RankType_RANK_TYPE_BG RankType = 5 RankType_RANK_TYPE_COL RankType = 6 RankType_RANK_TYPE_LTC RankType = 7 RankType_RANK_TYPE_MAJ RankType = 8 RankType_RANK_TYPE_CPT RankType = 9 RankType_RANK_TYPE_1LT RankType = 10 RankType_RANK_TYPE_2LT RankType = 11 RankType_RANK_TYPE_CSM RankType = 12 RankType_RANK_TYPE_SGM RankType = 13 RankType_RANK_TYPE_1SG RankType = 14 RankType_RANK_TYPE_MSG RankType = 15 RankType_RANK_TYPE_SFC RankType = 16 RankType_RANK_TYPE_SSG RankType = 17 RankType_RANK_TYPE_SGT RankType = 18 RankType_RANK_TYPE_CPL RankType = 19 RankType_RANK_TYPE_SPC RankType = 20 RankType_RANK_TYPE_PFC RankType = 21 RankType_RANK_TYPE_PVT RankType = 22 RankType_RANK_TYPE_RCT RankType = 23 RankType_RANK_TYPE_CW5 RankType = 26 RankType_RANK_TYPE_CW4 RankType = 27 RankType_RANK_TYPE_CW3 RankType = 28 RankType_RANK_TYPE_CW2 RankType = 29 RankType_RANK_TYPE_WO1 RankType = 30 RankType_RANK_TYPE_AR RankType = 31 )
func (RankType) Descriptor ¶
func (RankType) Descriptor() protoreflect.EnumDescriptor
func (RankType) EnumDescriptor
deprecated
func (RankType) Number ¶
func (x RankType) Number() protoreflect.EnumNumber
func (RankType) Type ¶
func (RankType) Type() protoreflect.EnumType
type Record ¶
type Record struct { RecordDetails string `protobuf:"bytes,1,opt,name=record_details,json=recordDetails,proto3" json:"record_details,omitempty"` RecordType RecordType `protobuf:"varint,2,opt,name=record_type,json=recordType,proto3,enum=proto.RecordType" json:"record_type,omitempty"` RecordDate string `protobuf:"bytes,3,opt,name=record_date,json=recordDate,proto3" json:"record_date,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) GetRecordDate ¶
func (*Record) GetRecordDetails ¶
func (*Record) GetRecordType ¶
func (x *Record) GetRecordType() RecordType
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type RecordType ¶
type RecordType int32
const ( RecordType_RECORD_TYPE_UNSPECIFIED RecordType = 0 RecordType_RECORD_TYPE_PROMOTION RecordType = 1 RecordType_RECORD_TYPE_OPERATION RecordType = 2 RecordType_RECORD_TYPE_TRANSFER RecordType = 3 RecordType_RECORD_TYPE_DISCIPLINARY RecordType = 4 RecordType_RECORD_TYPE_DISCHARGE RecordType = 5 RecordType_RECORD_TYPE_ASSIGNMENT RecordType = 6 RecordType_RECORD_TYPE_NAME_CHANGE RecordType = 7 RecordType_RECORD_TYPE_ELOA RecordType = 8 RecordType_RECORD_TYPE_GRADUATION RecordType = 9 )
func (RecordType) Descriptor ¶
func (RecordType) Descriptor() protoreflect.EnumDescriptor
func (RecordType) Enum ¶
func (x RecordType) Enum() *RecordType
func (RecordType) EnumDescriptor
deprecated
func (RecordType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RecordType.Descriptor instead.
func (RecordType) Number ¶
func (x RecordType) Number() protoreflect.EnumNumber
func (RecordType) String ¶
func (x RecordType) String() string
func (RecordType) Type ¶
func (RecordType) Type() protoreflect.EnumType
type Roster ¶
type Roster struct { Profiles map[uint64]*Profile `` /* 158-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Roster) Descriptor
deprecated
func (*Roster) GetProfiles ¶
func (*Roster) ProtoMessage ¶
func (*Roster) ProtoMessage()
func (*Roster) ProtoReflect ¶
func (x *Roster) ProtoReflect() protoreflect.Message
type RosterRequest ¶
type RosterRequest struct { Roster RosterType `protobuf:"varint,1,opt,name=roster,proto3,enum=proto.RosterType" json:"roster,omitempty"` // contains filtered or unexported fields }
func (*RosterRequest) Descriptor
deprecated
func (*RosterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RosterRequest.ProtoReflect.Descriptor instead.
func (*RosterRequest) GetRoster ¶
func (x *RosterRequest) GetRoster() RosterType
func (*RosterRequest) ProtoMessage ¶
func (*RosterRequest) ProtoMessage()
func (*RosterRequest) ProtoReflect ¶
func (x *RosterRequest) ProtoReflect() protoreflect.Message
func (*RosterRequest) Reset ¶
func (x *RosterRequest) Reset()
func (*RosterRequest) String ¶
func (x *RosterRequest) String() string
type RosterType ¶
type RosterType int32
const ( RosterType_ROSTER_TYPE_UNSPECIFIED RosterType = 0 RosterType_ROSTER_TYPE_COMBAT RosterType = 1 RosterType_ROSTER_TYPE_RESERVE RosterType = 2 RosterType_ROSTER_TYPE_ELOA RosterType = 3 RosterType_ROSTER_TYPE_WALL_OF_HONOR RosterType = 4 RosterType_ROSTER_TYPE_ARLINGTON RosterType = 5 RosterType_ROSTER_TYPE_PAST_MEMBERS RosterType = 6 )
func (RosterType) Descriptor ¶
func (RosterType) Descriptor() protoreflect.EnumDescriptor
func (RosterType) Enum ¶
func (x RosterType) Enum() *RosterType
func (RosterType) EnumDescriptor
deprecated
func (RosterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RosterType.Descriptor instead.
func (RosterType) Number ¶
func (x RosterType) Number() protoreflect.EnumNumber
func (RosterType) String ¶
func (x RosterType) String() string
func (RosterType) Type ¶
func (RosterType) Type() protoreflect.EnumType
type Thingy ¶
type Thingy struct { Ack string `protobuf:"bytes,1,opt,name=ack,proto3" json:"ack,omitempty"` // contains filtered or unexported fields }
func (*Thingy) Descriptor
deprecated
func (*Thingy) ProtoMessage ¶
func (*Thingy) ProtoMessage()
func (*Thingy) ProtoReflect ¶
func (x *Thingy) ProtoReflect() protoreflect.Message
type UnimplementedMilpacServiceServer ¶
type UnimplementedMilpacServiceServer struct { }
UnimplementedMilpacServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedMilpacServiceServer) GetProfile ¶
func (UnimplementedMilpacServiceServer) GetProfile(context.Context, *ProfileRequest) (*Profile, error)
func (UnimplementedMilpacServiceServer) GetRoster ¶
func (UnimplementedMilpacServiceServer) GetRoster(context.Context, *RosterRequest) (*Roster, error)
func (UnimplementedMilpacServiceServer) GetUserViaKeycloakId ¶
func (UnimplementedMilpacServiceServer) GetUserViaKeycloakId(context.Context, *KeycloakIdRequest) (*Profile, error)
type UnsafeMilpacServiceServer ¶
type UnsafeMilpacServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMilpacServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MilpacServiceServer will result in compilation errors.
type User ¶
type User struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message